Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
35 lines
1.2 KiB
Plaintext
35 lines
1.2 KiB
Plaintext
/**
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
*/
|
|
import type { JSX } from 'react';
|
|
export interface TablePluginProps {
|
|
/**
|
|
* 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.
|
|
*/
|
|
hasCellMerge?: boolean;
|
|
/**
|
|
* When `false` (default `true`), the background color of TableCellNode will always be removed.
|
|
*/
|
|
hasCellBackgroundColor?: boolean;
|
|
/**
|
|
* When `true` (default `true`), the tab key can be used to navigate table cells.
|
|
*/
|
|
hasTabHandler?: boolean;
|
|
/**
|
|
* When `true` (default `false`), tables will be wrapped in a `<div>` to enable horizontal scrolling
|
|
*/
|
|
hasHorizontalScroll?: boolean;
|
|
}
|
|
/**
|
|
* A plugin to enable all of the features of Lexical's TableNode.
|
|
*
|
|
* @param props - See type for documentation
|
|
* @returns An element to render in your LexicalComposer
|
|
*/
|
|
export declare function TablePlugin({ hasCellMerge, hasCellBackgroundColor, hasTabHandler, hasHorizontalScroll, }: TablePluginProps): JSX.Element | null;
|