Class: AutoEmbedOption
@lexical/react/LexicalAutoEmbedPlugin.AutoEmbedOption
Hierarchy
- 
↳
AutoEmbedOption 
Constructors
constructor
• new AutoEmbedOption(title, options): AutoEmbedOption
Parameters
| Name | Type | 
|---|---|
title | string | 
options | Object | 
options.onSelect | (targetNode: null | LexicalNode) => void | 
Returns
Overrides
Defined in
packages/lexical-react/src/LexicalAutoEmbedPlugin.tsx:66
Properties
key
• key: string
Inherited from
Defined in
packages/lexical-react/src/shared/LexicalMenu.ts:55
onSelect
• onSelect: (targetNode: null | LexicalNode) => void
Type declaration
▸ (targetNode): void
Parameters
| Name | Type | 
|---|---|
targetNode | null | LexicalNode | 
Returns
void
Defined in
packages/lexical-react/src/LexicalAutoEmbedPlugin.tsx:65
ref
• Optional ref: MutableRefObject<null | HTMLElement>
Inherited from
Defined in
packages/lexical-react/src/shared/LexicalMenu.ts:56
title
• title: string
Defined in
packages/lexical-react/src/LexicalAutoEmbedPlugin.tsx:64
Methods
setRefElement
▸ setRefElement(element): void
Parameters
| Name | Type | 
|---|---|
element | null | HTMLElement | 
Returns
void