wax.DataTable
TypeComponent
Ownerwax
Dependencieswax.Table, wax
Basewax.Table
Element tagtable
Description

A nicely formatted table with data binding capabilities.

Attributes
Inherited from wax.Element: flex, contextMenu, tooltip, disabled, draggable, display
dataSource
string

The URL of an XML file to be used as a data source. The document is loaded using an XMLRequest, and its contents are passed on to the populate method of the table.

Methods
Inherited from wax.Element: getContainer, add, remove, pack, empty, raise, hangsFrom, getDocX, getDocY, getMouseX, getMouseY, acceptDrop, drag, getDragElem
populate
void populate( nodes, columns = null)

Fills the table with the given set of XML nodes. Each node is transformed into a row, and each attribute into a cell.

nodes

An array of nodes.

columns

Specifies which subset of attributes from the nodes should be used to retrieve the data. The indicated column order is respected as well.