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

BubbleMenuPluginProps

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

§Properties

§
editor: Editor
[src]

The editor instance.

§
element: HTMLElement
[src]

The DOM element that contains your menu.

§
pluginKey: PluginKey | string
[src]

The plugin key.

§
shouldShow?: ((props: {
editor: Editor;
view: EditorView;
state: EditorState;
oldState?: EditorState;
from: number;
to: number;
}
) => 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.js instance.

§
updateDelay?: number
[src]

The delay in milliseconds before the menu should be updated. This can be useful to prevent performance issues.