Skip to main content

Interface: WidgetTaskHandlerProps

Properties

widgetInfo

widgetInfo: WidgetInfo

Information about the widget being handled.


widgetAction

widgetAction: "WIDGET_ADDED" | "WIDGET_UPDATE" | "WIDGET_RESIZED" | "WIDGET_DELETED" | "WIDGET_CLICK"

What kind of action is being handled


renderWidget

renderWidget: (widgetComponent: Element) => void

Function that needs to be called with the Widget JSX to render

Type declaration

▸ (widgetComponent): void

Function that needs to be called with the Widget JSX to render

Parameters
NameType
widgetComponentElement
Returns

void


clickAction

Optional clickAction: string

Click action if widgetAction was WIDGET_CLICK


clickActionData

Optional clickActionData: Record<string, unknown>

Additional click action data if widgetAction was WIDGET_CLICK