WidgetHost Class
A WidgetHost represents a definition that hosts one or most Widgets in a Frontstage.
Extended by
- StagePanelDef
- ZoneDef
Methods
| Name | Description | |
|---|---|---|
| constructor(): WidgetHost | Constructor for WidgetHost. | |
| addWidgetDef(widgetDef: WidgetDef): void | Adds a WidgetDef to the list of Widgets. | |
| findWidgetDef(id: string): WidgetDef | undefined | Finds a WidgetDef with a given Id. | |
| getSingleWidgetDef(): WidgetDef | undefined | If there is only one Widget in the Panel, gets the single WidgetDef. |
Properties
| Name | Type | Description | |
|---|---|---|---|
| widgetCount Accessor ReadOnly | number | Gets the number of Widgets. | |
| widgetDefs Accessor ReadOnly | WidgetDef[] | Gets the list of Widgets. |
Defined in
Last Updated: 08 January, 2020