win.dialogs() and wm.dialogs() are the promise-based alert / confirm / prompt factory built into the SGApps window-manager, plus a customPopup escape hatch for dialogs that don't fit those three shapes. Every dialog is a real WM window — parented to the caller (for win.dialogs()) or floating at the manager root (for wm.dialogs()) — so it inherits the same focus cascade, close cascade, chrome, and styling as any other app window.
The API contract mirrors electron.dialog.showMessageBox(browserWindow, opts), so an Electron adapter can later swap the DOM path for native OS dialogs without call-site changes.
Related: Window Manager covers how to obtain a wm; Window covers the win object.
The buttons below drive a real window-manager loaded via exporter.js on this page — the same wm instance the code snippets use. First click boots the SDK (~1 s); subsequent clicks reuse it.
<script>(function () {
if (window.__docsWm) return;
// Lazy-load exporter.js (only the first inline script in a docsify
// page executes on route change, so both the loader and the boot
// logic have to live inside a single script tag).
if (!window.__docsWmExporterLoading) {
window.__docsWmExporterLoading = true;
var s = document.createElement("script");
// Absolute URL matters — exporter.js infers the RootHost from
// its own ` -->
sgapps.io