setWidgetState Method

Sets the state of the widget with the given id

setWidgetState(widgetId: string, state: WidgetState): boolean

Parameter Type Description
widgetId string Id of the Widget for which to set the state
state WidgetState New state of the widget

Returns - boolean

true if the widget state was set successfully, or false if not.

Last Updated: 20 June, 2023