Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

FloatingMenuPluginProps

interface FloatingMenuPluginProps {
editor: Editor;
element: HTMLElement;
pluginKey: PluginKey | string;
shouldShow?: ((props: {
editor: Editor;
view: EditorView;
state: EditorState;
oldState?: EditorState;
}
) => boolean
)
| null;
tippyOptions?: Partial<Props>;
}

§Properties

§
editor: Editor
[src]

The editor instance.

§
element: HTMLElement
[src]

The DOM element that contains your menu.

§
pluginKey: PluginKey | string
[src]

The plugin key for the floating menu.

§
shouldShow?: ((props: {
editor: Editor;
view: EditorView;
state: EditorState;
oldState?: EditorState;
}
) => boolean
)
| null
[src]

A function that determines whether the menu should be shown or not. If this function returns false, the menu will be hidden, otherwise it will be shown.

§
tippyOptions?: Partial<Props>
[src]

The options for the tippy instance.