Constructor
new ve.dm.TableCellableNode()abstract
#
DataModel node which can behave as a table cell
- Source:
DataModel node which can behave as a table cell
Methods
getColspan() → {number}
#
Get the number of columns the cell spans
Returns:
Columns spanned
- Type
- number
Get the number of columns the cell spans
getRowspan() → {number}
#
Get the number of rows the cell spans
Returns:
Rows spanned
- Type
- number
Get the number of rows the cell spans
getSpans() → {Object}
#
Get number of columns and rows the cell spans
Returns:
Object containing 'col' and 'row'
- Type
- Object
Get number of columns and rows the cell spans
getStyle() → {string}
#
Get the style of the cell
Returns:
Style, 'header' or 'data'
- Type
- string
Get the style of the cell
onCellableAttributeChange(key, from, to)
#
Handle attributes changes
Parameters:
Name | Type | Description |
---|---|---|
key |
string | Attribute key |
from |
string | Old value |
to |
string | New value |
Handle attributes changes