Skip to main content
The widget global reads and controls widgets by their widget ID. (It’s singular — widget, not widgets.) Every method below is paired with a real example you can drop into the Script tab.
Where do I get the widgetId? Select the widget in the Dashboard Designer and open General → Basic. The Widget ID field holds the value — use the copy button and paste it into your updateWidget / widget.* call. See Binding Data for the full model.
Widget ID in the General tab

Copy a widget's ID from General → Basic — this is the value your update calls reference.

Values and text

Visibility

Position, size, rotation

Config

The widget object

Events

on and once return an unsubscribe function.
See Events for the full event vocabulary.

Events reference

Every event a widget can fire.

More recipes

End-to-end script patterns.