Class: TableNode
@lexical/table.TableNode
Hierarchy
↳
TableNode
Constructors
constructor
• new TableNode(key?
)
Parameters
Name | Type |
---|---|
key? | string |
Overrides
DEPRECATED_GridNode.constructor
Defined in
lexical-table/src/LexicalTableNode.ts:54
Methods
canBeEmpty
▸ canBeEmpty(): false
Returns
false
Overrides
DEPRECATED_GridNode.canBeEmpty
Defined in
lexical-table/src/LexicalTableNode.ts:105
canExtractContents
▸ canExtractContents(): false
Returns
false
Overrides
DEPRECATED_GridNode.canExtractContents
Defined in
lexical-table/src/LexicalTableNode.ts:101
canIndent
▸ canIndent(): false
Returns
false
Overrides
Defined in
lexical-table/src/LexicalTableNode.ts:197
canSelectBefore
▸ canSelectBefore(): true
Returns
true
Defined in
lexical-table/src/LexicalTableNode.ts:193
createDOM
▸ createDOM(config
, editor?
): HTMLElement
Parameters
Name | Type |
---|---|
config | EditorConfig |
editor? | LexicalEditor |
Returns
HTMLElement
Overrides
DEPRECATED_GridNode.createDOM
Defined in
lexical-table/src/LexicalTableNode.ts:59
exportDOM
▸ exportDOM(editor
): DOMExportOutput
Parameters
Name | Type |
---|---|
editor | LexicalEditor |
Returns
Overrides
DEPRECATED_GridNode.exportDOM
Defined in
lexical-table/src/LexicalTableNode.ts:71
getCellFromCords
▸ getCellFromCords(x
, y
, grid
): null
| Cell
Parameters
Name | Type |
---|---|
x | number |
y | number |
grid | Grid |
Returns
null
| Cell
Defined in
lexical-table/src/LexicalTableNode.ts:139
getCellFromCordsOrThrow
▸ getCellFromCordsOrThrow(x
, y
, grid
): Cell
Parameters
Name | Type |
---|---|
x | number |
y | number |
grid | Grid |
Returns
Defined in
lexical-table/src/LexicalTableNode.ts:157
getCellNodeFromCords
▸ getCellNodeFromCords(x
, y
, grid
): null
| TableCellNode
Parameters
Name | Type |
---|---|
x | number |
y | number |
grid | Grid |
Returns
null
| TableCellNode
Defined in
lexical-table/src/LexicalTableNode.ts:167
getCellNodeFromCordsOrThrow
▸ getCellNodeFromCordsOrThrow(x
, y
, grid
): TableCellNode
Parameters
Name | Type |
---|---|
x | number |
y | number |
grid | Grid |
Returns
Defined in
lexical-table/src/LexicalTableNode.ts:183
getCordsFromCellNode
▸ getCordsFromCellNode(tableCellNode
, grid
): Object
Parameters
Name | Type |
---|---|
tableCellNode | TableCellNode |
grid | Grid |
Returns
Object
Name | Type |
---|---|
x | number |
y | number |
Defined in
lexical-table/src/LexicalTableNode.ts:113
isShadowRoot
▸ isShadowRoot(): boolean
Returns
boolean
Overrides
DEPRECATED_GridNode.isShadowRoot
Defined in
lexical-table/src/LexicalTableNode.ts:109
updateDOM
▸ updateDOM(): boolean
Returns
boolean
Overrides
DEPRECATED_GridNode.updateDOM
Defined in
lexical-table/src/LexicalTableNode.ts:67
clone
▸ Static
clone(node
): TableNode
Parameters
Name | Type |
---|---|
node | TableNode |
Returns
Overrides
DEPRECATED_GridNode.clone
Defined in
lexical-table/src/LexicalTableNode.ts:41
getType
▸ Static
getType(): string
Returns
string
Overrides
DEPRECATED_GridNode.getType
Defined in
lexical-table/src/LexicalTableNode.ts:37
importDOM
▸ Static
importDOM(): null
| DOMConversionMap
<HTMLElement
>
Returns
null
| DOMConversionMap
<HTMLElement
>
Defined in
lexical-table/src/LexicalTableNode.ts:45