/** * The Widget model module. * @module Ntnx/Widget * @version 4.1.1-beta-1 * @class Widget * @param { WidgetTemplate | WidgetConfig } widgetInfo This describes the details of the widget. * */ export default class Widget { /** * Constructs a Widget from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. * @param {module:Ntnx/Widget} obj Optional instance to populate. * @param callFromChild {Boolean} Flag to recognise calling instance * @return {module:Ntnx/Widget} The populated Widget instance. */ static constructFromObject(data: any, obj?: any, callFromChild?: boolean): any; /** * Converts a given snake_case string to camelCase. * @param {string} snakeStr - The input string in snake_case format. * @returns {string} - The converted string in camelCase format. */ static snakeToCamel(snakeStr: string): string; /** * Constructs a new Widget. * Element that displays information in the report. * @alias module:Ntnx/Widget * @param { WidgetTemplate | WidgetConfig } widgetInfo This describes the details of the widget. * */ constructor(widgetInfo: WidgetTemplate | WidgetConfig); widgetInfo: WidgetConfig | WidgetTemplate; $objectType: string; /** @type {object} */ $reserved: object; /** @type {object} */ $unknownFields: object; /** * Returns This describes the details of the widget. * @return {WidgetTemplate | WidgetConfig} */ getWidgetInfo(): WidgetTemplate | WidgetConfig; /** * Sets This describes the details of the widget. * @param {WidgetTemplate | WidgetConfig} widgetInfo This describes the details of the widget. */ setWidgetInfo(widgetInfo: WidgetTemplate | WidgetConfig): void; get$Reserved(): any; get$ObjectType(): string; get$UnknownFields(): any; toJson(forMutation: any): any; validate(scope: any, properties: any, ...args: any[]): Promise; validateProperty(scope: any, property: any): ValidationError; #private; } import WidgetConfig from "./WidgetConfig"; import WidgetTemplate from "./WidgetTemplate"; import ValidationError from "../../../validation/ValidationError";