Confirm
Imperative confirmation dialog based on Promises, reusing oas-modal under the hood.
Basic usage
Basic usage
Custom text
Custom text
Cancel handling
Cancel handling
Clear all
Clear all
API
Methods
| Method | Description |
|---|---|
confirm({ title?, content?, okText?, cancelText? }) | Opens a confirm dialog, returns Promise<void>; resolves on OK, rejects on cancel |
destroyAllConfirm() | Close all confirm dialogs |
- Reuses
oas-modal; Esc / mask / cancel button all close it. - OK and cancel internally dispatch the
oas-ok/oas-cancelevents.