Function: createConfirmDialog()
Examples / @xmachines/play-dom-demo / createConfirmDialog
function createConfirmDialog(confirm): Promise<boolean>;Defined in: packages/play-dom/examples/demo/src/components/ConfirmDialog.ts:12
ConfirmDialog — the DOM demo’s onConfirm implementation.
The DOM package ships no dialog of its own (it only exposes ctx.onConfirm),
so the demo renders one. The buttons carry the spec’s
confirmLabel/cancelLabel verbatim — the same text the framework
renderers’ ConfirmDialogManager shows — so the shared browser suite drives
every demo’s dialog by label text.
Parameters
| Parameter | Type |
|---|---|
confirm | ActionConfirm |
Returns
Promise<boolean>