Skip to main content

Class: DEPRECATED_GridCellNode

lexical.DEPRECATED_GridCellNode

Hierarchy

Constructors

constructor

new DEPRECATED_GridCellNode(colSpan, key?)

Parameters

NameType
colSpannumber
key?string

Overrides

ElementNode.constructor

Defined in

lexical/src/nodes/LexicalGridCellNode.ts:32

Properties

__rowSpan

__rowSpan: number

Defined in

lexical/src/nodes/LexicalGridCellNode.ts:30

Methods

exportJSON

exportJSON(): SerializedGridCellNode

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

SerializedGridCellNode

Overrides

ElementNode.exportJSON

Defined in

lexical/src/nodes/LexicalGridCellNode.ts:38


getColSpan

getColSpan(): number

Returns

number

Defined in

lexical/src/nodes/LexicalGridCellNode.ts:46


getRowSpan

getRowSpan(): number

Returns

number

Defined in

lexical/src/nodes/LexicalGridCellNode.ts:55


setColSpan

setColSpan(colSpan): DEPRECATED_GridCellNode

Parameters

NameType
colSpannumber

Returns

DEPRECATED_GridCellNode

Defined in

lexical/src/nodes/LexicalGridCellNode.ts:50


setRowSpan

setRowSpan(rowSpan): DEPRECATED_GridCellNode

Parameters

NameType
rowSpannumber

Returns

DEPRECATED_GridCellNode

Defined in

lexical/src/nodes/LexicalGridCellNode.ts:59