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

BubbleMenuView

class BubbleMenuView {
constructor({ editor, element, view, tippyOptions, updateDelay, shouldShow }: BubbleMenuViewProps);
private updateDebounceTimer;
blurHandler: ({ event }: {
event: FocusEvent;
}
) => void
;
dragstartHandler: () => void;
editor: Editor;
element: HTMLElement;
focusHandler: () => void;
handleDebouncedUpdate: (view: EditorView, oldState?: EditorState) => void;
mousedownHandler: () => void;
preventHide: boolean;
shouldShow: Exclude<BubbleMenuPluginProps["shouldShow"], null>;
tippy: Instance | undefined;
tippyBlurHandler: (event: FocusEvent) => void;
tippyOptions?: Partial<Props>;
updateDelay: number;
updateHandler: (
view: EditorView,
selectionChanged: boolean,
docChanged: boolean,
oldState?: EditorState,
) => void
;
view: EditorView;
 
createTooltip(): void;
destroy(): void;
hide(): void;
show(): void;
update(view: EditorView, oldState?: EditorState): void;
}

§Constructors

§
new BubbleMenuView({ editor, element, view, tippyOptions, updateDelay, shouldShow }: BubbleMenuViewProps)
[src]

§Properties

§
updateDebounceTimer
[src]
§
blurHandler: ({ event }: {
event: FocusEvent;
}
) => void
[src]
§
dragstartHandler: () => void
[src]
§
element: HTMLElement
[src]
§
focusHandler: () => void
[src]
§
handleDebouncedUpdate: (view: EditorView, oldState?: EditorState) => void
[src]
§
mousedownHandler: () => void
[src]
§
preventHide: boolean
[src]
§
shouldShow: Exclude<BubbleMenuPluginProps["shouldShow"], null>
[src]
§
tippy: Instance | undefined
[src]
§
tippyBlurHandler: (event: FocusEvent) => void
[src]
§
tippyOptions: Partial<Props>
[src]
§
updateDelay: number
[src]
§
updateHandler: (view: EditorView, selectionChanged: boolean, docChanged: boolean, oldState?: EditorState) => void
[src]

§Methods

§
createTooltip(): void
[src]
§
destroy(): void
[src]
§
hide(): void
[src]
§
show(): void
[src]
§
update(view: EditorView, oldState?: EditorState): void
[src]