PluginDialog
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
actions? |
DialogAction[] |
Buttons under the body; without them, the dialog has a Close button. |
title |
PluginText |
- |
Methods
Section titled “Methods”render()
Section titled “render()”render(body, close): void | (() => void);Fills the dialog’s body with plain DOM; may return a function to clean
up when it closes. close ends the dialog from inside the body, as
choosing an item in a list does, resolving dialog with that id. It is
called again, after cleaning up, when the editor’s language changes.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
body |
HTMLElement |
close |
(action) => void |
Returns
Section titled “Returns”void | (() => void)