Class

TableSlot (table)

@ckeditor/ckeditor5-table/src/tablewalker

class

An object returned by TableWalker when traversing table cells.

Filtering

Properties

  • cell : Element

    readonly

    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 to 1.

  • cellWidth

    readonly

    The width of a cell defined by a colspan attribute. If the model attribute is not present, it is set to 1.

  • 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.

  • rowIndex

    readonly

    The index of the current row element in the table.

  • _cellIndex : Number

    private readonly

    The index of the current cell in the parent row.

  • _rowIndex : Number

    private readonly

    The index of the current row element in the table.

  • _table : Element

    private readonly

    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.

  • getPositionBefore() → Position

    Returns the Position before the table slot.

    Returns

    Position