Skip to main content

Class: TableNode

lexical-table/src.TableNode

Hierarchy

Constructors

constructor

new TableNode(key?)

Parameters

NameType
key?string

Overrides

GridNode.constructor

Defined in

lexical-table/src/LexicalTableNode.ts:64

Methods

canBeEmpty

canBeEmpty(): false

Returns

false

Overrides

GridNode.canBeEmpty

Defined in

lexical-table/src/LexicalTableNode.ts:122


canExtractContents

canExtractContents(): false

Returns

false

Overrides

GridNode.canExtractContents

Defined in

lexical-table/src/LexicalTableNode.ts:118


canIndent

canIndent(): false

Returns

false

Overrides

GridNode.canIndent

Defined in

lexical-table/src/LexicalTableNode.ts:210


canSelectBefore

canSelectBefore(): true

Returns

true

Defined in

lexical-table/src/LexicalTableNode.ts:206


createDOM

createDOM(config, editor?): HTMLElement

Parameters

NameType
configEditorConfig
editor?LexicalEditor

Returns

HTMLElement

Overrides

GridNode.createDOM

Defined in

lexical-table/src/LexicalTableNode.ts:76


exportDOM

exportDOM(editor): DOMExportOutput

Parameters

NameType
editorLexicalEditor

Returns

DOMExportOutput

Overrides

GridNode.exportDOM

Defined in

lexical-table/src/LexicalTableNode.ts:88


exportJSON

exportJSON(): SerializedElementNode

Returns

SerializedElementNode

Overrides

GridNode.exportJSON

Defined in

lexical-table/src/LexicalTableNode.ts:68


getCellFromCords

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

Parameters

NameType
xnumber
ynumber
gridGrid

Returns

null | Cell

Defined in

lexical-table/src/LexicalTableNode.ts:152


getCellFromCordsOrThrow

getCellFromCordsOrThrow(x, y, grid): Cell

Parameters

NameType
xnumber
ynumber
gridGrid

Returns

Cell

Defined in

lexical-table/src/LexicalTableNode.ts:170


getCellNodeFromCords

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

Parameters

NameType
xnumber
ynumber
gridGrid

Returns

null | TableCellNode

Defined in

lexical-table/src/LexicalTableNode.ts:180


getCellNodeFromCordsOrThrow

getCellNodeFromCordsOrThrow(x, y, grid): TableCellNode

Parameters

NameType
xnumber
ynumber
gridGrid

Returns

TableCellNode

Defined in

lexical-table/src/LexicalTableNode.ts:196


getCordsFromCellNode

getCordsFromCellNode(tableCellNode, grid): Object

Parameters

NameType
tableCellNodeTableCellNode
gridGrid

Returns

Object

NameType
xnumber
ynumber

Defined in

lexical-table/src/LexicalTableNode.ts:126


updateDOM

updateDOM(): boolean

Returns

boolean

Overrides

GridNode.updateDOM

Defined in

lexical-table/src/LexicalTableNode.ts:84


clone

Static clone(node): TableNode

Parameters

NameType
nodeTableNode

Returns

TableNode

Overrides

GridNode.clone

Defined in

lexical-table/src/LexicalTableNode.ts:47


getType

Static getType(): "table"

Returns

"table"

Overrides

GridNode.getType

Defined in

lexical-table/src/LexicalTableNode.ts:43


importDOM

Static importDOM(): null | DOMConversionMap<HTMLElement>

Returns

null | DOMConversionMap<HTMLElement>

Defined in

lexical-table/src/LexicalTableNode.ts:51


importJSON

Static importJSON(_serializedNode): TableNode

Parameters

NameType
_serializedNodeSerializedTableNode

Returns

TableNode

Overrides

GridNode.importJSON

Defined in

lexical-table/src/LexicalTableNode.ts:60