Skip to main content

system.mes.dashboard.getWidget

Description

Retrieves a Dashboard Widget by its ID.

Syntax

system.mes.dashboard.getWidget(id)

Parameters

ParameterTypeNullableDescription
idString (ULID)FalseThe ID of the widget to retrieve.

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.getWidget('01JAP8RJBN-8ZTPXSGY-J9GSDPE1')
print(w)