alert
Display dialogs using HTML <dialog> elements instead of the blocking browser APIs.
alert
Shows a message with a single OK button.
import { alert } from "@olenbetong/appframe-core";
await alert("Saved");confirm
Shows a confirmation dialog and resolves to a boolean.
import { confirm } from "@olenbetong/appframe-core";
if (await confirm("Delete item?")) {
// ...
}openAlertDialog
Low level helper to present a custom dialog with arbitrary buttons and content.
waitForDialog
Returns a promise that resolves when the given dialog closes.
API
Last updated
Was this helpful?