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:55
Properties
key
• key: string
Defined in
packages/lexical-react/src/shared/LexicalMenu.ts:52
ref
• Optional
ref: MutableRefObject
<null
| HTMLElement
>
Defined in
packages/lexical-react/src/shared/LexicalMenu.ts:53
Methods
setRefElement
▸ setRefElement(element
): void
Parameters
Name | Type |
---|---|
element | null | HTMLElement |
Returns
void