Interface DashboardWidgetsAddedEvent Beta
Event triggered when a widget is added to the dashboard, for example by duplicating a widget.
Remarks
A host that owns widgets must apply this event (add the widget, adopt the layout and the widget options) or the widget is dropped on the next props change.
Properties
payload
payload:
object
The added widget and where it was placed.
Type declaration
payload.widgetwidget:
WidgetPropsThe added widget, with its persisted id when the dashboard is persisted.
payload.widgetOptionswidgetOptions?:
SpecificWidgetOptionsThe dashboard-level options of the added widget.
payload.widgetsPanelLayoutwidgetsPanelLayout:
WidgetsPanelColumnLayoutThe widgets panel layout including the added widget.
type
type:
"widgets/added"
Event type.