Skip to main content

@lexical/react/LexicalTablePlugin

Interfaces

TablePluginProps

Defined in: packages/lexical-react/src/LexicalTablePlugin.ts:24

Properties

hasCellBackgroundColor?

optional hasCellBackgroundColor: boolean

Defined in: packages/lexical-react/src/LexicalTablePlugin.ts:33

When false (default true), the background color of TableCellNode will always be removed.

hasCellMerge?

optional hasCellMerge: boolean

Defined in: packages/lexical-react/src/LexicalTablePlugin.ts:29

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.

hasFitNestedTables?

optional hasFitNestedTables: boolean

Defined in: packages/lexical-react/src/LexicalTablePlugin.ts:55

Experimental

When true (default false), nested tables will be visually resized to fit the width of the nearest root or shadow root (including table cells). This only affects the rendered table, underlying column widths are not modified.

Nested tables are not officially supported.

hasHorizontalScroll?

optional hasHorizontalScroll: boolean

Defined in: packages/lexical-react/src/LexicalTablePlugin.ts:41

When true (default false), tables will be wrapped in a <div> to enable horizontal scrolling

hasNestedTables?

optional hasNestedTables: boolean

Defined in: packages/lexical-react/src/LexicalTablePlugin.ts:47

Experimental

When true (default false), nested tables will be allowed.

Nested tables are not officially supported.

hasTabHandler?

optional hasTabHandler: boolean

Defined in: packages/lexical-react/src/LexicalTablePlugin.ts:37

When true (default true), the tab key can be used to navigate table cells.

Functions

TablePlugin()

TablePlugin(props): null | Element

Defined in: packages/lexical-react/src/LexicalTablePlugin.ts:64

A plugin to enable all of the features of Lexical's TableNode.

Parameters

props

TablePluginProps

See type for documentation

Returns

null | Element

An element to render in your LexicalComposer