TableSlot (table)
@ckeditor/ckeditor5-table/src/tablewalker
An object returned by TableWalker
when traversing table cells.
Filtering
Properties
-
The current table cell.
-
cellAnchorColumn : Number
module:table/tablewalker~TableSlot#cellAnchorColumn
readonly
The column index of a cell anchor slot.
-
cellAnchorRow : Number
module:table/tablewalker~TableSlot#cellAnchorRow
readonly
The row index of a cell anchor slot.
-
cellHeight
module:table/tablewalker~TableSlot#cellHeight
readonly
The height of a cell defined by a
rowspan
attribute. If the model attribute is not present, it is set to1
. -
cellWidth
module:table/tablewalker~TableSlot#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
module:table/tablewalker~TableSlot#column
readonly
The column index of a table slot.
-
isAnchor
module:table/tablewalker~TableSlot#isAnchor
readonly
Whether the cell is anchored in the current slot.
-
row : Number
module:table/tablewalker~TableSlot#row
readonly
The row index of a table slot.
-
rowIndex
module:table/tablewalker~TableSlot#rowIndex
readonly
The index of the current row element in the table.
-
_cellIndex : Number
module:table/tablewalker~TableSlot#_cellIndex
private readonly
The index of the current cell in the parent row.
-
_rowIndex : Number
module:table/tablewalker~TableSlot#_rowIndex
private readonly
The index of the current row element in the table.
-
The table element.
Methods
-
constructor( tableWalker, cell, anchorRow, anchorColumn )
module:table/tablewalker~TableSlot#constructor
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.
-
getPositionBefore() → Position
module:table/tablewalker~TableSlot#getPositionBefore
Returns the
Position
before the table slot.Returns
Every day, we work hard to keep our documentation complete. Have you spotted an outdated information? Is something missing? Please report it via our issue tracker.