Skip to main content

Class: MenuOption

@lexical/react/LexicalContextMenuPlugin.MenuOption

Hierarchy

Constructors

constructor

new MenuOption(key): MenuOption

Parameters

NameType
keystring

Returns

MenuOption

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

NameType
elementnull | HTMLElement

Returns

void

Defined in

packages/lexical-react/src/shared/LexicalMenu.ts:61