Skip to main content

Class: AutoEmbedOption

@lexical/react/LexicalAutoEmbedPlugin.AutoEmbedOption

Hierarchy

Constructors

constructor

new AutoEmbedOption(title, options): AutoEmbedOption

Parameters

NameType
titlestring
optionsObject
options.onSelect(targetNode: null | LexicalNode) => void

Returns

AutoEmbedOption

Overrides

MenuOption.constructor

Defined in

packages/lexical-react/src/LexicalAutoEmbedPlugin.tsx:65

Properties

key

key: string

Inherited from

MenuOption.key

Defined in

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


onSelect

onSelect: (targetNode: null | LexicalNode) => void

Type declaration

▸ (targetNode): void

Parameters
NameType
targetNodenull | LexicalNode
Returns

void

Defined in

packages/lexical-react/src/LexicalAutoEmbedPlugin.tsx:64


ref

Optional ref: MutableRefObject<null | HTMLElement>

Inherited from

MenuOption.ref

Defined in

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


title

title: string

Defined in

packages/lexical-react/src/LexicalAutoEmbedPlugin.tsx:63

Methods

setRefElement

setRefElement(element): void

Parameters

NameType
elementnull | HTMLElement

Returns

void

Inherited from

MenuOption.setRefElement

Defined in

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