Class: TableCellNode
@lexical/table.TableCellNode
Hierarchy
-
↳
TableCellNode
Constructors
constructor
• new TableCellNode(headerState?
, colSpan?
, width?
, key?
): TableCellNode
Parameters
Name | Type | Default value |
---|---|---|
headerState | number | TableCellHeaderStates.NO_STATUS |
colSpan | number | 1 |
width? | number | undefined |
key? | string | undefined |
Returns
Overrides
Defined in
packages/lexical-table/src/LexicalTableCellNode.ts:109
Methods
canBeEmpty
▸ canBeEmpty(): false
Returns
false
Overrides
Defined in
packages/lexical-table/src/LexicalTableCellNode.ts:284
canIndent
▸ canIndent(): false
Returns
false
Overrides
Defined in
packages/lexical-table/src/LexicalTableCellNode.ts:288
collapseAtStart
▸ collapseAtStart(): true
Returns
true
Overrides
Defined in
packages/lexical-table/src/LexicalTableCellNode.ts:280
createDOM
▸ createDOM(config
): HTMLElement
Parameters
Name | Type |
---|---|
config | EditorConfig |
Returns
HTMLElement
Overrides
ElementNode.createDOM
Defined in
packages/lexical-table/src/LexicalTableCellNode.ts:123
exportDOM
▸ exportDOM(editor
): DOMExportOutput
Parameters
Name | Type |
---|---|
editor | LexicalEditor |
Returns
Overrides
ElementNode.exportDOM
Defined in
packages/lexical-table/src/LexicalTableCellNode.ts:150
exportJSON
▸ exportJSON(): SerializedTableCellNode
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
packages/lexical-table/src/LexicalTableCellNode.ts:184
getBackgroundColor
▸ getBackgroundColor(): null
| string
Returns
null
| string
Defined in
packages/lexical-table/src/LexicalTableCellNode.ts:238
getColSpan
▸ getColSpan(): number
Returns
number
Defined in
packages/lexical-table/src/LexicalTableCellNode.ts:196
getHeaderStyles
▸ getHeaderStyles(): number
Returns
number
Defined in
packages/lexical-table/src/LexicalTableCellNode.ts:224
getRowSpan
▸ getRowSpan(): number
Returns
number
Defined in
packages/lexical-table/src/LexicalTableCellNode.ts:205
getTag
▸ getTag(): string
Returns
string
Defined in
packages/lexical-table/src/LexicalTableCellNode.ts:214
getWidth
▸ getWidth(): undefined
| number
Returns
undefined
| number
Defined in
packages/lexical-table/src/LexicalTableCellNode.ts:234
hasHeader
▸ hasHeader(): boolean
Returns
boolean
Defined in
packages/lexical-table/src/LexicalTableCellNode.ts:262
hasHeaderState
▸ hasHeaderState(headerState
): boolean
Parameters
Name | Type |
---|---|
headerState | number |
Returns
boolean
Defined in
packages/lexical-table/src/LexicalTableCellNode.ts:258
isShadowRoot
▸ isShadowRoot(): boolean
Returns
boolean
Overrides
Defined in
packages/lexical-table/src/LexicalTableCellNode.ts:276
setBackgroundColor
▸ setBackgroundColor(newBackgroundColor
): void
Parameters
Name | Type |
---|---|
newBackgroundColor | null | string |
Returns
void
Defined in
packages/lexical-table/src/LexicalTableCellNode.ts:242
setColSpan
▸ setColSpan(colSpan
): this
Parameters
Name | Type |
---|---|
colSpan | number |
Returns
this
Defined in
packages/lexical-table/src/LexicalTableCellNode.ts:200
setHeaderStyles
▸ setHeaderStyles(headerState
): number
Parameters
Name | Type |
---|---|
headerState | number |
Returns
number
Defined in
packages/lexical-table/src/LexicalTableCellNode.ts:218
setRowSpan
▸ setRowSpan(rowSpan
): this
Parameters
Name | Type |
---|---|
rowSpan | number |
Returns
this
Defined in
packages/lexical-table/src/LexicalTableCellNode.ts:209