IConfigurableWidget interface

Configurable widgets implement this interface

Extends

Properties

reload

When the configuration view is changed, the widget is expected to update its view.

Inherited Properties

disableWidgetForStakeholders

The framework calls this method to determine if the widget should be disabled for users with stakeholder license

lightbox

Run widget in lightboxed mode

listen

Listen to message from host

load

Widgets use the settings provided as well as server side calls to complete their rendering experience. In the future, widgets are expected to provide a loading experience while the calls are being waited to be completed. Until then, the widget host will provide the loading experience

onDashboardLoaded

Widgets manage any operations that are not necessary for initial load but are required for the full widget experience.

preload

widgets use the settings provided along with the any cached data they may have to paint an interactive state. No network calls should be made by the widget.

Property Details

reload

When the configuration view is changed, the widget is expected to update its view.

reload: (newWidgetSettings: WidgetSettings) => Promise<WidgetStatus>

Property Value

(newWidgetSettings: WidgetSettings) => Promise<WidgetStatus>

Inherited Property Details

disableWidgetForStakeholders

The framework calls this method to determine if the widget should be disabled for users with stakeholder license

disableWidgetForStakeholders?: (widgetSettings: WidgetSettings) => Promise<boolean>

Property Value

(widgetSettings: WidgetSettings) => Promise<boolean>

Inherited From IWidget.disableWidgetForStakeholders

lightbox

Run widget in lightboxed mode

lightbox?: (widgetSettings: WidgetSettings, lightboxSize: Size) => Promise<WidgetStatus>

Property Value

(widgetSettings: WidgetSettings, lightboxSize: Size) => Promise<WidgetStatus>

Inherited From IWidget.lightbox

listen

Listen to message from host

listen?: (event: string, eventArgs: EventArgs<T>) => void

Property Value

(event: string, eventArgs: EventArgs<T>) => void

Inherited From IWidget.listen

load

Widgets use the settings provided as well as server side calls to complete their rendering experience. In the future, widgets are expected to provide a loading experience while the calls are being waited to be completed. Until then, the widget host will provide the loading experience

load: (widgetSettings: WidgetSettings) => Promise<WidgetStatus>

Property Value

(widgetSettings: WidgetSettings) => Promise<WidgetStatus>

Inherited From IWidget.load

onDashboardLoaded

Widgets manage any operations that are not necessary for initial load but are required for the full widget experience.

onDashboardLoaded?: () => void

Property Value

() => void

Inherited From IWidget.onDashboardLoaded

preload

widgets use the settings provided along with the any cached data they may have to paint an interactive state. No network calls should be made by the widget.

preload: (widgetSettings: WidgetSettings) => Promise<WidgetStatus>

Property Value

(widgetSettings: WidgetSettings) => Promise<WidgetStatus>

Inherited From IWidget.preload