Class: TableCellNode
@lexical/table.TableCellNode
Hierarchy
↳
TableCellNode
Constructors
constructor
• new TableCellNode(headerState?
, colSpan?
, width?
, key?
)
Parameters
Name | Type | Default value |
---|---|---|
headerState | number | TableCellHeaderStates.NO_STATUS |
colSpan | number | 1 |
width? | number | undefined |
key? | string | undefined |
Overrides
DEPRECATED_GridCellNode.constructor
Defined in
lexical-table/src/LexicalTableCellNode.ts:98
Methods
canBeEmpty
▸ canBeEmpty(): false
Returns
false
Overrides
DEPRECATED_GridCellNode.canBeEmpty
Defined in
lexical-table/src/LexicalTableCellNode.ts:251
canIndent
▸ canIndent(): false
Returns
false
Overrides
DEPRECATED_GridCellNode.canIndent
Defined in
lexical-table/src/LexicalTableCellNode.ts:255
collapseAtStart
▸ collapseAtStart(): true
Returns
true
Overrides
DEPRECATED_GridCellNode.collapseAtStart
Defined in
lexical-table/src/LexicalTableCellNode.ts:247
createDOM
▸ createDOM(config
): HTMLElement
Parameters
Name | Type |
---|---|
config | EditorConfig |
Returns
HTMLElement
Overrides
DEPRECATED_GridCellNode.createDOM
Defined in
lexical-table/src/LexicalTableCellNode.ts:110
exportDOM
▸ exportDOM(editor
): DOMExportOutput
Parameters
Name | Type |
---|---|
editor | LexicalEditor |
Returns
Overrides
DEPRECATED_GridCellNode.exportDOM
Defined in
lexical-table/src/LexicalTableCellNode.ts:137
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
DEPRECATED_GridCellNode.exportJSON
Defined in
lexical-table/src/LexicalTableCellNode.ts:171
getBackgroundColor
▸ getBackgroundColor(): null
| string
Returns
null
| string
Defined in
lexical-table/src/LexicalTableCellNode.ts:205
getHeaderStyles
▸ getHeaderStyles(): number
Returns
number
Defined in
lexical-table/src/LexicalTableCellNode.ts:191
getTag
▸ getTag(): string
Returns
string
Defined in
lexical-table/src/LexicalTableCellNode.ts:181
getWidth
▸ getWidth(): undefined
| number
Returns
undefined
| number
Defined in
lexical-table/src/LexicalTableCellNode.ts:201
hasHeader
▸ hasHeader(): boolean
Returns
boolean
Defined in
lexical-table/src/LexicalTableCellNode.ts:229
hasHeaderState
▸ hasHeaderState(headerState
): boolean
Parameters
Name | Type |
---|---|
headerState | number |
Returns
boolean
Defined in
lexical-table/src/LexicalTableCellNode.ts:225
isShadowRoot
▸ isShadowRoot(): boolean
Returns
boolean
Overrides
DEPRECATED_GridCellNode.isShadowRoot
Defined in
lexical-table/src/LexicalTableCellNode.ts:243
setBackgroundColor
▸ setBackgroundColor(newBackgroundColor
): void
Parameters
Name | Type |
---|---|
newBackgroundColor | null | string |
Returns
void
Defined in
lexical-table/src/LexicalTableCellNode.ts:209
setHeaderStyles
▸ setHeaderStyles(headerState
): number
Parameters
Name | Type |
---|---|
headerState | number |
Returns
number
Defined in
lexical-table/src/LexicalTableCellNode.ts:185
setWidth
▸ setWidth(width
): undefined
| null
| number
Parameters
Name | Type |
---|---|
width | number |
Returns
undefined
| null
| number
Defined in
lexical-table/src/LexicalTableCellNode.ts:195
toggleHeaderStyle
▸ toggleHeaderStyle(headerStateToToggle
): TableCellNode
Parameters
Name | Type |
---|---|
headerStateToToggle | number |
Returns
Defined in
lexical-table/src/LexicalTableCellNode.ts:213
updateDOM
▸ updateDOM(prevNode
): boolean
Parameters
Name | Type |
---|---|
prevNode | TableCellNode |
Returns
boolean
Overrides
DEPRECATED_GridCellNode.updateDOM
Defined in
lexical-table/src/LexicalTableCellNode.ts:233
clone
▸ Static
clone(node
): TableCellNode
Parameters
Name | Type |
---|---|
node | TableCellNode |
Returns
Overrides
DEPRECATED_GridCellNode.clone
Defined in
lexical-table/src/LexicalTableCellNode.ts:62
getType
▸ Static
getType(): string
Returns
string
Overrides
DEPRECATED_GridCellNode.getType
Defined in
lexical-table/src/LexicalTableCellNode.ts:58
importDOM
▸ Static
importDOM(): null
| DOMConversionMap
<HTMLElement
>
Returns
null
| DOMConversionMap
<HTMLElement
>
Defined in
lexical-table/src/LexicalTableCellNode.ts:74
importJSON
▸ Static
importJSON(serializedNode
): TableCellNode
Parameters
Name | Type |
---|---|
serializedNode | SerializedTableCellNode |
Returns
Overrides
DEPRECATED_GridCellNode.importJSON
Defined in
lexical-table/src/LexicalTableCellNode.ts:87