Class

TableSlot (table)

@ckeditor/ckeditor5-table/src/tablewalker

class

An object returned by TableWalker when traversing table cells.

Filtering

Properties

  • readonly

    cell : Element

    The current table cell.

  • readonly

    cellAnchorColumn : number

    The column index of a cell anchor slot.

  • readonly

    cellAnchorRow : number

    The row index of a cell anchor slot.

  • readonly

    cellHeight : number

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

  • readonly

    cellWidth : number

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

  • readonly

    column : number

    The column index of a table slot.

  • readonly

    isAnchor : boolean

    Whether the cell is anchored in the current slot.

  • readonly

    row : number

    The row index of a table slot.

  • readonly

    rowIndex : number

    The index of the current row element in the table.

  • private readonly

    _cellIndex : number

    The index of the current cell in the parent row.

  • private readonly

    _rowIndex : number

    The index of the current row element in the table.

  • private readonly

    _table : Element

    The table element.

Methods

  • constructor( tableWalker, cell, anchorRow, anchorColumn )

    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