Provide Control UI

From Documentation
Revision as of 09:25, 21 November 2011 by SimonPai (talk | contribs) (Created page with "{{ZKPivottableEssentialsPageHeader}} You can change page, open/close node, or resize columns on the Pivottable component itself. However, for UI flexibility, the component itsel...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


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

Last Update : 2011/11/21


Version Date Content
     



Last Update : 2011/11/21

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.