Optional$metaOptionalinstallMethod?: "first install" | "demo" | "once"Optional$overrideSet properties not directly supported by this API.
OptionalangularArray of Angular providers for the widget
OptionalcategoryThe category of the widget (default is 'custom')
OptionalclientThe client script for the widget
OptionalcontrollerThe controller for the widget (default is 'c')
OptionalcustomThe custom CSS for the widget
OptionaldataThe data table for the widget (default is 'sp_instance')
OptionaldemoThe demo data for the widget
OptionaldependenciesArray of widget dependencies
OptionaldescriptionThe description of the widget
OptionaldocsThe documentation for the widget
OptionalfieldsThe fields for the widget
OptionalhasShow the preview pane in the Service Portal editor
OptionalhtmlThe HTML template for the widget
OptionalidThe unique id for the widget. Must contain alphanumeric, -, or _ characters
Optionalinternalinternal field used by ServiceNow developers
OptionallinkThe link script for the widget (client-side)
The name of the widget (required)
OptionaloptionThe option schema for the widget
OptionalprotectionControls edit/view access for other developers after the application is installed.
OptionalpublicWhether the widget is public
OptionalrolesThe roles that can access the widget
OptionalserverThe server script for the widget
OptionalservicenowBuilt by ServiceNow. On build, can only be true if scope has sn_ or snc_ prefix
OptionaltemplatesArray of widget templates
Map a record to an output folder that loads only in specific circumstances. 'first install' -> 'unload' (only loaded when plugin is first registered), 'demo' -> 'unload.demo' (only loaded when demo data is loaded), 'once' -> 'apply_once' (scripts that are only applied once)