The ZK Spreadsheet Component

From Documentation
Revision as of 01:27, 4 November 2010 by Samchuang (talk | contribs)


The ZK Spreadsheet Component




The ZK Spreadsheet Component

In this section, a brief overview is given on how developers work with the ZK Spreadsheet component.

The Bare Spreadsheet Component


ZK Spreadsheet is a single ZK component. Developers could declare it within any ZK container components, such as Window, tabs, groupbox, etc.

For example:

<window title="Bare ZK Spreadsheet" border="normal" height="600px">
<spreadsheet src="/demo_sample.xls"	
			maxrows="200" 
			maxcolumns="40"
			width="500px"
			height="300px"></spreadsheet>
</window>

which renders:
BareSpreadsheet.png

Spreadsheet Component Attributes


Developers customize the spreadsheet component by declaring its attributes, for example:

  • the source file of the spreadsheet, for example src="/demo_sample.xls"
  • the maximum number of rows of this spread sheet, for example maxrows="200"
  • the maximum number of columns of this spread sheet, for example maxcolumns="40"
  • size of the spreadsheet component, for example: width="500px" height="300px"