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:65
Properties
key
• key: string
Inherited from
Defined in
packages/lexical-react/src/shared/LexicalMenu.ts:52
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:64
ref
• Optional
ref: MutableRefObject
<null
| HTMLElement
>
Inherited from
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
Name | Type |
---|---|
element | null | HTMLElement |
Returns
void