# Function toTextWidgetProps
toTextWidgetProps(
widgetModel
):TextWidgetProps
Translates a WidgetModel to the props for rendering a text widget.
# Parameters
Parameter | Type |
---|---|
widgetModel | WidgetModel |
# Returns
# Example
<TextWidget {...widgetModelTranslator.toTextWidgetProps(widgetModel)} />
Note: this method is not supported for chart or pivot widgets.
Use toChartWidgetProps instead for getting props for the <ChartWidget>
component.
Use toPivotTableWidgetProps instead for getting props for the <PivotTableWidget>
component.