Skip to content

getWidgetById

@wuespace/telestion / widget / getWidgetById

getWidgetById(id): undefined | Widget<Record<string, Json>>

Retrieves a widget by its unique type ID.

Parameters

id: string

The unique type ID of the widget.

Returns

undefined | Widget<Record<string, Json>>

The widget associated with the ID, or null if the widget is not found.