/** * The View model module. * @module Ntnx/View * @version 4.1.1-beta-1 * @class View * @extends ExternalizableAbstractModel * * @param { string } name Name of the view. * @param { CustomView | PredefinedView } type Type for the view, which can take custom values or set of predefined views. * */ export default class View extends ExternalizableAbstractModel { /** * Constructs a new View. * View creation/modification spec. * @alias module:Ntnx/View * @extends module:Ntnx/ExternalizableAbstractModel * * @param { string } name Name of the view. * @param { CustomView | PredefinedView } type Type for the view, which can take custom values or set of predefined views. * */ constructor(name: string, type: CustomView | PredefinedView); name: string; type: CustomView | PredefinedView; /** * Returns Name of the view. * @return {string} */ getName(): string; /** * Sets Name of the view. * @param {string} name Name of the view. */ setName(name: string): void; /** * Returns Heading for the view, used while generating reports. * @return {string} */ getHeading(): string; /** * Sets Heading for the view, used while generating reports. * @param {string} heading Heading for the view, used while generating reports. */ setHeading(heading: string): void; heading: string; /** * Returns Type for the view, which can take custom values or set of predefined views. * @return {CustomView | PredefinedView} */ getType(): CustomView | PredefinedView; /** * Sets Type for the view, which can take custom values or set of predefined views. * @param {CustomView | PredefinedView} type Type for the view, which can take custom values or set of predefined views. */ setType(type: CustomView | PredefinedView): void; #private; } import ExternalizableAbstractModel from "../../../common/v1/response/ExternalizableAbstractModel"; import CustomView from "./CustomView"; import PredefinedView from "./PredefinedView";