Skip to main content

Class: TableNode

@lexical/table.TableNode

Hierarchy

Constructors

constructor

new TableNode(key?)

Parameters

NameType
key?string

Overrides

DEPRECATED_GridNode.constructor

Defined in

lexical-table/src/LexicalTableNode.ts:61

Methods

canBeEmpty

canBeEmpty(): false

Returns

false

Overrides

DEPRECATED_GridNode.canBeEmpty

Defined in

lexical-table/src/LexicalTableNode.ts:120


canExtractContents

canExtractContents(): false

Returns

false

Overrides

DEPRECATED_GridNode.canExtractContents

Defined in

lexical-table/src/LexicalTableNode.ts:116


canIndent

canIndent(): false

Returns

false

Overrides

DEPRECATED_GridNode.canIndent

Defined in

lexical-table/src/LexicalTableNode.ts:212


canSelectBefore

canSelectBefore(): true

Returns

true

Defined in

lexical-table/src/LexicalTableNode.ts:208


createDOM

createDOM(config, editor?): HTMLElement

Parameters

NameType
configEditorConfig
editor?LexicalEditor

Returns

HTMLElement

Overrides

DEPRECATED_GridNode.createDOM

Defined in

lexical-table/src/LexicalTableNode.ts:73


exportDOM

exportDOM(editor): DOMExportOutput

Parameters

NameType
editorLexicalEditor

Returns

DOMExportOutput

Overrides

DEPRECATED_GridNode.exportDOM

Defined in

lexical-table/src/LexicalTableNode.ts:85


exportJSON

exportJSON(): SerializedElementNode<SerializedLexicalNode>

Controls how the this node is serialized to JSON. This is important for copy and paste between Lexical editors sharing the same namespace. It's also important if you're serializing to JSON for persistent storage somewhere. See Serialization & Deserialization.

Returns

SerializedElementNode<SerializedLexicalNode>

Overrides

DEPRECATED_GridNode.exportJSON

Defined in

lexical-table/src/LexicalTableNode.ts:65


getCellFromCords

getCellFromCords(x, y, grid): null | Cell

Parameters

NameType
xnumber
ynumber
gridGrid

Returns

null | Cell

Defined in

lexical-table/src/LexicalTableNode.ts:154


getCellFromCordsOrThrow

getCellFromCordsOrThrow(x, y, grid): Cell

Parameters

NameType
xnumber
ynumber
gridGrid

Returns

Cell

Defined in

lexical-table/src/LexicalTableNode.ts:172


getCellNodeFromCords

getCellNodeFromCords(x, y, grid): null | TableCellNode

Parameters

NameType
xnumber
ynumber
gridGrid

Returns

null | TableCellNode

Defined in

lexical-table/src/LexicalTableNode.ts:182


getCellNodeFromCordsOrThrow

getCellNodeFromCordsOrThrow(x, y, grid): TableCellNode

Parameters

NameType
xnumber
ynumber
gridGrid

Returns

TableCellNode

Defined in

lexical-table/src/LexicalTableNode.ts:198


getCordsFromCellNode

getCordsFromCellNode(tableCellNode, grid): Object

Parameters

NameType
tableCellNodeTableCellNode
gridGrid

Returns

Object

NameType
xnumber
ynumber

Defined in

lexical-table/src/LexicalTableNode.ts:128


isShadowRoot

isShadowRoot(): boolean

Returns

boolean

Overrides

DEPRECATED_GridNode.isShadowRoot

Defined in

lexical-table/src/LexicalTableNode.ts:124


updateDOM

updateDOM(): boolean

Returns

boolean

Overrides

DEPRECATED_GridNode.updateDOM

Defined in

lexical-table/src/LexicalTableNode.ts:81


clone

Static clone(node): TableNode

Parameters

NameType
nodeTableNode

Returns

TableNode

Overrides

DEPRECATED_GridNode.clone

Defined in

lexical-table/src/LexicalTableNode.ts:44


getType

Static getType(): string

Returns

string

Overrides

DEPRECATED_GridNode.getType

Defined in

lexical-table/src/LexicalTableNode.ts:40


importDOM

Static importDOM(): null | DOMConversionMap<HTMLElement>

Returns

null | DOMConversionMap<HTMLElement>

Defined in

lexical-table/src/LexicalTableNode.ts:48


importJSON

Static importJSON(_serializedNode): TableNode

Parameters

NameType
_serializedNodeSerializedTableNode

Returns

TableNode

Overrides

DEPRECATED_GridNode.importJSON

Defined in

lexical-table/src/LexicalTableNode.ts:57