Dialog
JavaScript-only dialog system for alerts, confirmations, and prompts. Returns Promises for easy async flow.
Alert
Confirm
Prompt
Click a button to see a dialog...
JS JS Methods (Static)
| Method / Property | Parameters | Description |
|---|---|---|
m.dialog.alert(message, title, icon) | string, ?string, ?string | Show an alert dialog. Returns Promise<void>. Default title: "Alert", icon: fa-info-circle. |
m.dialog.confirm(message, title, icon) | string, ?string, ?string | Show a confirm dialog. Returns Promise<boolean>. Resolves true (OK) or false (Cancel). |
m.dialog.prompt(message, defaultValue, title, icon) | string, ?string, ?string, ?string | Show a prompt with text input. Returns Promise<string|null>. Resolves the input value or null if cancelled. |