TableSlot (table)
@ckeditor/ckeditor5-table/src/tablewalker
An object returned by TableWalker
when traversing table cells.
Filtering
Properties
-
The current table cell.
-
cellAnchorColumn : Number
readonly
The column index of a cell anchor slot.
-
cellAnchorRow : Number
readonly
The row index of a cell anchor slot.
-
cellHeight
readonly
The height of a cell defined by a
rowspan
attribute. If the model attribute is not present, it is set to1
. -
cellWidth
readonly
The width of a cell defined by a
colspan
attribute. If the model attribute is not present, it is set to1
. -
column : Number
readonly
The column index of a table slot.
-
isAnchor
readonly
Whether the cell is anchored in the current slot.
-
row : Number
readonly
The row index of a table slot.
-
_cellIndex : Number
private readonly
The index of the current cell in the parent row.
-
The table element.
Methods
-
constructor( tableWalker, cell, anchorRow, anchorColumn )
protected
Creates an instance of the table walker value.
Parameters
tableWalker : TableWalker
The table walker instance.
cell : Element
The current table cell.
anchorRow : Number
The row index of a cell anchor slot.
anchorColumn : Number
The column index of a cell anchor slot.
-
Returns the
Position
before the table slot.Returns