# TableSlot

class

An object returned by [`TableWalker`](module_table_tablewalker-TableWalker.md) when traversing table cells.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-table/src/tablewalker.ts#L498)

<a id="properties">

## Properties

<a id="member-cell">

### `cell: ModelElement` _(readonly)_

The current table cell.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-table/src/tablewalker.ts#L502)

<a id="member-cellAnchorColumn">

### `cellAnchorColumn: number` _(readonly)_

The column index of a cell anchor slot.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-table/src/tablewalker.ts#L522)

<a id="member-cellAnchorRow">

### `cellAnchorRow: number` _(readonly)_

The row index of a cell anchor slot.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-table/src/tablewalker.ts#L517)

<a id="member-cellHeight">

### `cellHeight: number` _(readonly)_

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

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-table/src/tablewalker.ts#L580)

<a id="member-cellWidth">

### `cellWidth: number` _(readonly)_

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

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-table/src/tablewalker.ts#L573)

<a id="member-column">

### `column: number` _(readonly)_

The column index of a table slot.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-table/src/tablewalker.ts#L512)

<a id="member-isAnchor">

### `isAnchor: boolean` _(readonly)_

Whether the cell is anchored in the current slot.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-table/src/tablewalker.ts#L566)

<a id="member-row">

### `row: number` _(readonly)_

The row index of a table slot.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-table/src/tablewalker.ts#L507)

<a id="member-rowIndex">

### `rowIndex: number` _(readonly)_

The index of the current row element in the table.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-table/src/tablewalker.ts#L587)

<a id="member-_cellIndex">

### `_cellIndex: number` _(private)_

The index of the current cell in the parent row.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-table/src/tablewalker.ts#L527)

<a id="member-_rowIndex">

### `_rowIndex: number` _(private)_

The index of the current row element in the table.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-table/src/tablewalker.ts#L532)

<a id="member-_table">

### `_table: ModelElement` _(private)_

The table element.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-table/src/tablewalker.ts#L537)

<a id="methods">

## Methods

<a id="function-constructor">

### `constructor( tableWalker, cell, anchorRow, anchorColumn )`

Creates an instance of the table walker value.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-table/src/tablewalker.ts#L547)

#### Parameters

* `tableWalker: TableWalker`

  The table walker instance.

* `cell: ModelElement`

  The current table cell.

* `anchorRow: number`

  The row index of a cell anchor slot.

* `anchorColumn: number`

  The column index of a cell anchor slot.

<a id="function-getPositionBefore">

### `getPositionBefore() → ModelPosition`

Returns the [`ModelPosition`](module_engine_model_position-ModelPosition.md) before the table slot.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-table/src/tablewalker.ts#L594)

#### Returns

* `ModelPosition`

---

Full index of the CKEditor 5 API reference: [llms.txt](llms.txt)
