Class: ContextMenuSeparator
@lexical/react/LexicalContextMenuPlugin.ContextMenuSeparator
Hierarchy
-
MenuOption
↳
ContextMenuSeparator
Constructors
constructor
• new ContextMenuSeparator(options?
): ContextMenuSeparator
Parameters
Name | Type |
---|---|
options? | Object |
options.$showOn? | (node : LexicalNode ) => boolean |
Returns
Overrides
MenuOption.constructor
Defined in
packages/lexical-react/src/LexicalContextMenuPlugin.tsx:79
Properties
$showOn
• Optional
$showOn: (node
: LexicalNode
) => boolean
Type declaration
▸ (node
): boolean
Parameters
Name | Type |
---|---|
node | LexicalNode |
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
Name | Type |
---|---|
element | null | HTMLElement |
Returns
void
Inherited from
MenuOption.setRefElement