⚠️ You are viewing documentation for an older version of Compose SDK.
Version:
# 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.widgetTypewidgetType:
TWidget type
# Type parameters
| Parameter |
|---|
W extends ChartWidgetProps | PivotTableWidgetProps | PluginWidgetProps | TextWidgetProps |
T extends "chart" | "pivot" | "plugin" | "text" |