Expand all

abstract ve.dm.TableCellableNode

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

Source:

Returns:

Columns spanned

Type
number
Get the number of columns the cell spans

getRowspan() → {number} #

Get the number of rows the cell spans

Source:

Returns:

Rows spanned

Type
number
Get the number of rows the cell spans

getSpans() → {Object} #

Get number of columns and rows the cell spans

Source:

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

Source:

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

Source:
Handle attributes changes