Provide Control UI
From Documentation
You can change page, open/close node, or resize columns on the Pivottable component itself. However, for UI flexibility, the component itself does not provide control unit for other APIs, like to change pivot fields, toggle data field orientation, or sort the headers.
Simple controls
The following properties on Pivottable are very straightforward to wire up:
- data field orientation
- whether to show row/column grand totals
For example,
<checkbox label="Enable grand total for columns" onCheck='pivot.setGrandTotalForColumns(self.isChecked())' />
<checkbox label="Enable grand total for rows" onCheck='pivot.setGrandTotalForRows(self.isChecked())' />
<radiogroup id="dataOrient">
Data field orientation:
<radio id="colOrient" label="column" onCheck='pivot.setDataFieldOrient("column")' />
<radio id="rowOrient" label="row" onCheck='pivot.setDataFieldOrient("row")' />
</radiogroup>
Use PivotFieldControl to handle field setting
TODO
Version History
Version | Date | Content |
---|---|---|