TableColumn
The configuration class for Table columns
Example
Custom Column Type
Table.columnTypeRegistry.foo = class FooColumn extends TableColumn {
...
}
new Table({
data: [...]
columns: [{ type: 'foo' }]
})Constructor
new TableColumn(options)
options
:
Object
optionaltype
:
string
optionalDeclares which column class from Table.columnTypeRegistry to use. Optional, default is TableColumn
frozen
:
boolean
optionalMake column stay in place when table body scrolls
class
:
string
optionalclasses to append to header and cells (space separated)
render
:
function
optionalRender method for the cell. Receives (record, cell, columnConfiguration, table)
header
:
function
|
string
optionalRender method for the header. Receives (columnConfiguration, table)
splitInto
:
function
|
string
optionalsplit cell into multiple rows by the result of this method. If String, key is called on record. If Function, function is called with record as argument.