@lexical/react/LexicalTablePlugin
Interfaces
TablePluginProps
Defined in: packages/lexical-react/src/LexicalTablePlugin.ts:27
Props for the TablePlugin component.
Properties
hasCellBackgroundColor?
optionalhasCellBackgroundColor?:boolean
Defined in: packages/lexical-react/src/LexicalTablePlugin.ts:36
When false (default true), the background color of TableCellNode will always be removed.
hasCellMerge?
optionalhasCellMerge?:boolean
Defined in: packages/lexical-react/src/LexicalTablePlugin.ts:32
When false (default true), merged cell support (colspan and rowspan) will be disabled and all
tables will be forced into a regular grid with 1x1 table cells.
hasHorizontalScroll?
optionalhasHorizontalScroll?:boolean
Defined in: packages/lexical-react/src/LexicalTablePlugin.ts:44
When true (default false), tables will be wrapped in a <div> to enable horizontal scrolling
hasNestedTables?
optionalhasNestedTables?:boolean
Defined in: packages/lexical-react/src/LexicalTablePlugin.ts:50
Experimental
When true (default false), nested tables will be allowed.
Nested tables are not officially supported.
hasTabHandler?
optionalhasTabHandler?:boolean
Defined in: packages/lexical-react/src/LexicalTablePlugin.ts:40
When true (default true), the tab key can be used to navigate table cells.
Functions
TablePlugin()
TablePlugin(
props):Element|null
Defined in: packages/lexical-react/src/LexicalTablePlugin.ts:62
A plugin to enable all of the features of Lexical's TableNode.
Parameters
props
See type for documentation This is a legacy plugin. When building an editor with the extension API, configure TableExtension instead.
Returns
Element | null
An element to render in your LexicalComposer