Skip to main content

Module: @lexical/react/LexicalContextMenuPlugin

Classes

Type Aliases

LexicalContextMenuPluginProps

Ƭ LexicalContextMenuPluginProps<TOption>: Object

Type parameters

NameType
TOptionextends MenuOption

Type declaration

NameType
anchorClassName?string
commandPriority?CommandListenerPriority
onClose?() => void
onOpen?(resolution: MenuResolution) => void
onSelectOption(option: TOption, textNodeContainingQuery: LexicalNode | null, closeMenu: () => void, matchingString: string) => void
onWillOpen?(event: MouseEvent) => void
optionsTOption[]
parent?HTMLElement

Defined in

packages/lexical-react/src/LexicalContextMenuPlugin.tsx:28


Ƭ MenuResolution: Object

Type declaration

NameType
getRect() => DOMRect
match?MenuTextMatch

Defined in

packages/lexical-react/src/shared/LexicalMenu.tsx:65

Functions

LexicalContextMenuPlugin

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

Type parameters

NameType
TOptionextends MenuOption

Parameters

NameType
«destructured»LexicalContextMenuPluginProps<TOption>

Returns

JSX.Element | null

Defined in

packages/lexical-react/src/LexicalContextMenuPlugin.tsx:46