Skip to content
TREB Docs

Table

Table interface

struct representing a table

Members
areatable area
columnsoptional
string[]
string[]
table column headers. normalize case before inserting.
name
string
string
table must have a name
sortoptionalsort data. sorts are hard, meaning we actually move data around. (not meaning difficult). we may keep track of the last sort so we can toggle asc/desc, for example. atm this will not survive serialization.
sortableoptional
boolean
boolean
table is sortable. defaults to true. if false, disables UI sorting.
themeoptionaltheme for table. we have a default, but you can set explicitly.
totals_rowoptional
boolean
boolean
table has a totals row. this impacts layout and what's included in the range when you refer to a column. also on import/export, the AutoFilter element should exclude the totals row. NOTE: xlsx actually uses an integer for this -- can it be > 1?
Referenced by
TREBDocument
BaseCellData