Skip to main content

Class: ContextMenuSeparator

@lexical/react/LexicalContextMenuPlugin.ContextMenuSeparator

Hierarchy

  • MenuOption

    ContextMenuSeparator

Constructors

constructor

new ContextMenuSeparator(options?): ContextMenuSeparator

Parameters

NameType
options?Object
options.$showOn?(node: LexicalNode) => boolean

Returns

ContextMenuSeparator

Overrides

MenuOption.constructor

Defined in

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

Properties

$showOn

Optional $showOn: (node: LexicalNode) => boolean

Type declaration

▸ (node): boolean

Parameters
NameType
nodeLexicalNode
Returns

boolean

Defined in

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


key

key: string

Inherited from

MenuOption.key

Defined in

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


ref

Optional ref: MutableRefObject<null | HTMLElement>

Inherited from

MenuOption.ref

Defined in

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

Methods

setRefElement

setRefElement(element): void

Parameters

NameType
elementnull | HTMLElement

Returns

void

Inherited from

MenuOption.setRefElement

Defined in

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