Class: WidgetNamespace
Hierarchy
NamespaceBase↳
WidgetNamespace
Methods
closePopup
▸ closePopup(restoreFocus?): Promise<void>
Parameters
| Name | Type | Default value |
|---|---|---|
restoreFocus | boolean | true |
Returns
Promise<void>
getDimensions
▸ getDimensions(widgetInstanceId): Promise<DOMRect>
Parameters
| Name | Type |
|---|---|
widgetInstanceId | number |
Returns
Promise<DOMRect>
getWidgetContext
▸ getWidgetContext<T>(): Promise<WidgetLocationContextDataMap[T] extends undefined ? { widgetInstanceId: string } : WidgetLocationContextDataMap[T] & { widgetInstanceId: string }>
Type parameters
| Name | Type |
|---|---|
T | extends WidgetLocation |
Returns
Promise<WidgetLocationContextDataMap[T] extends undefined ? { widgetInstanceId: string } : WidgetLocationContextDataMap[T] & { widgetInstanceId: string }>
getWidgetsAtLocation
▸ getWidgetsAtLocation(location, remId?): Promise<{ fileName: string ; pluginId: string }[]>
Parameters
| Name | Type |
|---|---|
location | WidgetLocation |
remId? | string |
Returns
Promise<{ fileName: string ; pluginId: string }[]>
openPopup
▸ openPopup(widgetFileName, contextData?, clickOutsideToClose?): Promise<void>
Parameters
| Name | Type |
|---|---|
widgetFileName | string |
contextData? | any |
clickOutsideToClose? | boolean |
Returns
Promise<void>