Class: MenuOption
@lexical/react/LexicalContextMenuPlugin.MenuOption
Hierarchy
-
MenuOption
Constructors
constructor
• new MenuOption(key
): MenuOption
Parameters
Name | Type |
---|---|
key | string |
Returns
Defined in
packages/lexical-react/src/shared/LexicalMenu.ts:56
Properties
key
• key: string
Defined in
packages/lexical-react/src/shared/LexicalMenu.ts:53
ref
• Optional
ref: MutableRefObject
<null
| HTMLElement
>
Defined in
packages/lexical-react/src/shared/LexicalMenu.ts:54
Methods
setRefElement
▸ setRefElement(element
): void
Parameters
Name | Type |
---|---|
element | null | HTMLElement |
Returns
void