跳至主要内容

Class: AutoEmbedOption

@lexical/react/LexicalAutoEmbedPlugin.AutoEmbedOption

層次結構

建構函式

建構函式

new AutoEmbedOption(title, options): AutoEmbedOption

參數

名稱類型
titlestring
optionsObject
options.onSelect(targetNode: null | LexicalNode) => void

返回

AutoEmbedOption

覆寫

MenuOption.constructor

定義於

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

屬性

key

key: string

繼承自

MenuOption.key

定義於

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


onSelect

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

類型宣告

▸ (targetNode): void

參數
名稱類型
targetNodenull | LexicalNode
返回

void

定義於

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


ref

選擇性 ref: MutableRefObject<null | HTMLElement>

繼承自

MenuOption.ref

定義於

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


title

title: string

定義於

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

函式

setRefElement

setRefElement(element): void

參數

名稱類型
elementnull | HTMLElement

返回

void

繼承自

MenuOption.setRefElement

定義於

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