Class: DEPRECATED_GridCellNode
lexical.DEPRECATED_GridCellNode
Hierarchy
↳
DEPRECATED_GridCellNode
Constructors
constructor
• new DEPRECATED_GridCellNode(colSpan
, key?
)
Parameters
Name | Type |
---|---|
colSpan | number |
key? | string |
Overrides
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
Overrides
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
Name | Type |
---|---|
colSpan | number |
Returns
Defined in
lexical/src/nodes/LexicalGridCellNode.ts:50
setRowSpan
▸ setRowSpan(rowSpan
): DEPRECATED_GridCellNode
Parameters
Name | Type |
---|---|
rowSpan | number |
Returns
Defined in
lexical/src/nodes/LexicalGridCellNode.ts:59