SpreadsheetColumn (extends TableColumn)
The configuration class for Spreadsheeet columns
Syntax
Spreadsheet.columnTypeRegistry.foo = class FooColumn extends SpreadsheetColumn {
...
}
new Table({
data: [...]
columns: [{ type: 'number' }]
})
Options
types | description | arguments | default | |
---|---|---|---|---|
type
|
String |
Declares which column class from Table.columnTypeRegistry to use. Optional, default is TableColumn |
||
frozen
|
Boolean |
Make column stay in place when table body scrolls |
||
class
|
String |
classes to append to header and cells (space separated) |
||
render
|
Function |
Render method for the cell |
record:Object, cell:Element, columnConfiguration:Object, table:Table | |
header
|
Function, String |
Render method for the header |
columnConfiguration:Object, table:Table | |
width
|
String |
Valid value for css grid template (i.e. px, percent, min-content...) |
||
splitInto
|
Function, String |
split cell into multiple rows by the resulting of this method. Expected return is iterable (specifically responds to .map). |
record:Object | |
headerEditable
|
Boolean |
allow header to be changed, fires events when changed |
true |