TableModel
@Js
class TableModel : Obj
TableModel backs the data model for a Table
Return item for the given row to be used with selection
Compare two cells when sorting the given col
Number of rows in table
Callback to update content for column header at given index
Return width of given column
Callback to update the cell content at given location
Return default visible/hidden state for column
Return height of header
Number of columns in table
Return height of rows
virtual Int colWidth(Int col)
Return width of given column.
virtual Int headerHeight()
Return height of header.
virtual Bool isVisibleDef(Int col)
Return default visible/hidden state for column
virtual Obj item(Int row)
Return item for the given row to be used with selection.
virtual Int numCols()
Number of columns in table.
virtual Int numRows()
Number of rows in table.
virtual Void onCell(Elem cell, Int col, Int row, TableFlags flags)
Callback to update the cell content at given location.
virtual Void onHeader(Elem header, Int col)
Callback to update content for column header at given index.
virtual Int rowHeight()
Return height of rows.
virtual Int sortCompare(Int col, Int row1, Int row2)
Compare two cells when sorting the given col. Return -1, 0, or 1 according to the same semanatics as Obj.compare. See Table.sort.