Skip to main content

system.mes.dashboard.getWidgetByName

Description

Retrieves a Dashboard Widget by its unique name.

Syntax

system.mes.dashboard.getWidgetByName(name)

Parameters

ParameterTypeNullableDescription
nameStringFalseThe name of the widget to get.

Returns

Returns a JSON representation of the widget.

NameTypeDescription
nameStringThe user-friendly name of the widget.
descriptionStringDescription of the widget functionality.
viewPathStringPath to the Ignition View that renders the widget.
iconPathStringPath to an icon for the widget.
categoryStringCategory of the widget.
defaultWidthIntegerDefault grid width of the widget.
defaultHeightIntegerDefault grid height of the widget.
minWidthIntegerMinimum grid width allowed.
minHeightIntegerMinimum grid height allowed.
idString (ULID)The ULID of the widget.
notesStringNotes related to the widget.
enabledBooleanIndicates if the widget is active and enabled.
spare1StringAdditional field for user-defined context.
spare2StringAdditional field for user-defined context.
spare3StringAdditional field for user-defined context.

Code Examples

w = system.mes.dashboard.getWidgetByName('Time Series')
print(w)