Skip to main content

Module: @lexical/react/LexicalNodeMenuPlugin

References

Re-exports MenuOption


Re-exports MenuRenderFn


Re-exports MenuResolution

Type Aliases

NodeMenuPluginProps

Ƭ NodeMenuPluginProps<TOption>: Object

Type parameters

NameType
TOptionextends MenuOption

Type declaration

NameType
anchorClassName?string
commandPriority?CommandListenerPriority
menuRenderFnMenuRenderFn<TOption>
nodeKeyNodeKey | null
onClose?() => void
onOpen?(resolution: MenuResolution) => void
onSelectOption(option: TOption, textNodeContainingQuery: TextNode | null, closeMenu: () => void, matchingString: string) => void
optionsTOption[]
parent?HTMLElement

Defined in

packages/lexical-react/src/LexicalNodeMenuPlugin.tsx:32

Functions

LexicalNodeMenuPlugin

LexicalNodeMenuPlugin<TOption>(«destructured»): JSX.Element | null

Type parameters

NameType
TOptionextends MenuOption

Parameters

NameType
«destructured»NodeMenuPluginProps<TOption>

Returns

JSX.Element | null

Defined in

packages/lexical-react/src/LexicalNodeMenuPlugin.tsx:49