fm3.Controls.PivotTable()
fm3.Controls.PivotTable(
container: HTMLElement | string,
params?: BaseInputParamsObject
)
A static method that creates a pivot table in the specified HTML container.
You can also create a pivot table using the <fm-pivot-table> tag.
Refer to the guide on the pivot table for more details.
Parameters
| Parameter/Type | Description |
|---|---|
containerHTMLElement | string | An HTML element where the pivot table should be rendered. You can pass either the HTMLElement or its id. |
paramsBaseInputParamsObject | optionalProvides configurations for the control. If the params is not specified, an empty control will be added to the page. |
Returns
FMPivotTable instance, the reference to the embedded pivot table control.
Examples
- Add an empty pivot table control:
- Add a configured pivot table control: