Module: @lexical/react/LexicalContextMenuPlugin
Classes
Type Aliases
LexicalContextMenuPluginProps
Ƭ LexicalContextMenuPluginProps<TOption
>: Object
Type parameters
Name | Type |
---|---|
TOption | extends MenuOption |
Type declaration
Name | Type |
---|---|
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 |
options | TOption [] |
parent? | HTMLElement |
Defined in
packages/lexical-react/src/LexicalContextMenuPlugin.tsx:28
MenuResolution
Ƭ MenuResolution: Object
Type declaration
Name | Type |
---|---|
getRect | () => DOMRect |
match? | MenuTextMatch |
Defined in
packages/lexical-react/src/shared/LexicalMenu.tsx:65
Functions
LexicalContextMenuPlugin
▸ LexicalContextMenuPlugin<TOption
>(«destructured»
): JSX.Element
| null
Type parameters
Name | Type |
---|---|
TOption | extends MenuOption |
Parameters
Name | Type |
---|---|
«destructured» | LexicalContextMenuPluginProps <TOption > |
Returns
JSX.Element
| null