Interface: RequestWidgetUpdateByIdProps
Properties
widgetName
• widgetName: string
The name of the widget to update
widgetId
• widgetId: number
The id of the widget to update
renderWidget
• renderWidget: (props
: WidgetInfo
) => Element
| Promise
<Element
>
Callback function that will be called with WidgetInfo It should return the JSX of the updated widget
Type declaration
▸ (props
): Element
| Promise
<Element
>
Callback function that will be called with WidgetInfo It should return the JSX of the updated widget
Parameters
Name | Type |
---|---|
props | WidgetInfo |
Returns
Element
| Promise
<Element
>
widgetNotFound
• Optional
widgetNotFound: () => void
Callback function that will be called if widget does not exist It can be used to clean up background tasks that update the widget periodically
Type declaration
▸ (): void
Callback function that will be called if widget does not exist It can be used to clean up background tasks that update the widget periodically
Returns
void