Kind: Class
Source: atloria-monorepo/packages/editor/src/plugins/table/TableNode.tsx
Extends: DecoratorNode
Methods
| Method | Signature | Returns |
|---|---|---|
getType | getType() | string |
clone | clone(node: TableNode) | TableNode |
importJSON | importJSON(serializedNode: SerializedTableNode) | TableNode |
importDOM | importDOM() | `DOMConversionMap |
exportJSON | exportJSON() | SerializedTableNode |
getMdastNode | getMdastNode() | Mdast.Table |
getRowCount | getRowCount() | number |
getColCount | getColCount() | number |
createDOM | createDOM() | HTMLElement |
updateDOM | updateDOM() | false |
updateCellContents | updateCellContents(colIndex: number, rowIndex: number, children: Mdast.PhrasingContent[]) | void |
insertColumnAt | insertColumnAt(colIndex: number) | void |
deleteColumnAt | deleteColumnAt(colIndex: number) | void |
insertRowAt | insertRowAt(y: number) | void |
deleteRowAt | deleteRowAt(rowIndex: number) | void |
addRowToBottom | addRowToBottom() | void |
addColumnToRight | addColumnToRight() | void |
setColumnAlign | setColumnAlign(colIndex: number, align: Mdast.AlignType) | void |
decorate | decorate(parentEditor: LexicalEditor) | JSX.Element |
select | select(coords: [colIndex: number, rowIndex: number]) | void |
isInline | isInline() | false |
Properties
| Property | Type |
|---|---|
__mdastNode | Mdast.Table |
focusEmitter | any |
Was this page helpful?