<fm-pivot-table> tag
Inherits the HTMLElement
Creates a pivot table on your HTML page.
You can also create the pivot table using the f3.Controls.PivotTable() method.
Attributes
Name | Description |
---|---|
state-id | Identifier of the state. State with the specified id must exist in your JavaScript code. |
You can also use attributes available for HTMLElement. For example, you can specify the element’s id
to reference the created instance.
Referencing the pivot table instance
You can get a reference to the created pivot table instance via the element’s id
:
const pivotTable = document.getElementById("#pivot-table");
Example
Add a pivot table using the <fm-pivot-table>
tag: