DataTable has two main classes that we will regularly create, YAHOO.widget.DataTable
, the most basic DataTable, and YAHOO.widget.ScrollingDataTable
, a subclass of the regular DataTable suitable for small spaces that allows the data to scroll vertically and horizontally while keeping the headers always visible and in sync with the data. Whatever we say about DataTable also applies to ScrollingDataTable, except where noted.
We may also create instances of any of the built-in cell editors, all of them subclasses of YAHOO.widget.BaseCellEditor
. There are six of them for different kinds of data.
We may use, though we'll never create, instances of RecordSet, Record, ColumnSet
, and Column
, all in the YAHOO.widget
branch of the library, which are indissoluble parts of the DataTable.
DataTable stores its data in a single RecordSet that contains an array of Record objects, each made of a series of fields containing the values to be shown. The data is never stored in the DataSource...