Module: @lexical/react/LexicalNodeMenuPlugin
References
MenuOption
Re-exports MenuOption
MenuRenderFn
Re-exports MenuRenderFn
MenuResolution
Re-exports MenuResolution
Type Aliases
NodeMenuPluginProps
Ƭ NodeMenuPluginProps<TOption>: Object
Type parameters
| Name | Type |
|---|---|
TOption | extends MenuOption |
Type declaration
| Name | Type |
|---|---|
anchorClassName? | string |
commandPriority? | CommandListenerPriority |
menuRenderFn | MenuRenderFn<TOption> |
nodeKey | NodeKey | null |
onClose? | () => void |
onOpen? | (resolution: MenuResolution) => void |
onSelectOption | (option: TOption, textNodeContainingQuery: TextNode | null, closeMenu: () => void, matchingString: string) => void |
options | TOption[] |
parent? | HTMLElement |
Defined in
packages/lexical-react/src/LexicalNodeMenuPlugin.tsx:25
Functions
LexicalNodeMenuPlugin
▸ LexicalNodeMenuPlugin<TOption>(«destructured»): JSX.Element | null
Type parameters
| Name | Type |
|---|---|
TOption | extends MenuOption |
Parameters
| Name | Type |
|---|---|
«destructured» | NodeMenuPluginProps<TOption> |
Returns
JSX.Element | null