Skip to content

PluginUI

The editor’s own messages and frames, in its style and language. Plugin DOM picks up the theme through its CSS custom properties (–wbe-*), and the wbe-btn and wbe-input classes.

confirm(options): Promise<boolean>;
Parameter Type
options { body: PluginText; confirmLabel: PluginText; title: PluginText; }
options.body PluginText
options.confirmLabel PluginText
options.title PluginText

Promise<boolean>


dialog(options): Promise<string | null>;

A dialog in the editor’s frame, with its focus handling. Resolves with the action chosen, or null when it is closed.

Parameter Type
options PluginDialog

Promise<string | null>


registerPanel(panel): () => void;

A side panel beside Issues, Changes and the report, with a button to show it. Returns a function that removes it.

Parameter Type
panel PluginPanel

() => void


toast(kind, text): void;
Parameter Type
kind "error" | "info"
text PluginText

void