# Type alias WithWidgetType<W, T>
WithWidgetType: <
W
,T
>W
& {widgetType
:T
; }
A utility type that combines widget-specific properties (W
) with a corresponding widget type (T
).
This is used to extend the props of a widget with its respective widget type.
#
WithWidgetType.widgetType
widgetType:
T
Widget type
# Type parameters
Parameter |
---|
W extends ChartWidgetProps | PivotTableWidgetProps | PluginWidgetProps | TextWidgetProps |
T extends "chart" | "pivot" | "plugin" | "text" |