The Table control provides a set of sophisticated and comfort functions for table design. For each Column a template control must be defined which describes how the data is visualized.
The Table control also provides the possibility for sorting and filtering based on the capabilities of the model, a drag and drop support for the columns and resizing of the table column widths.
For the selection of rows, a Multi, a Single, and a None mode are available. Many further properties are provided to adapt the visual appearence for example rowHeight
or visibleRowCount
.
The following code snippet shows the basic capabilities of the Table control:
The example above demonstrates how the Table is connected against a model via the Data Binding API using the function bindRows
.
For each Column the control template is finally be bound against the properties of an entry in the model. The table is initially sorted based on the entries in the fisrt column.
The following code snippet shows a table with fixed columns:
The Table control does not provide a Tree mode. For this purpose the TreeTable control should be used.