Confirm
Confirm
PConfirm asks the user to confirm or cancel a destructive action.
Demo
Usage
<PConfirm title="Delete record?" message="This cannot be undone." :can-cancel="true" @result="handleResult" @close="showConfirm = false"/>Props
| Prop | Type | Default | Notes |
|---|---|---|---|
title | String | — | Required. |
message | String | '' | Body text. |
canCancel | Boolean | false | Shows a separate cancel button. |
Events
| Event | Payload | Description |
|---|---|---|
result | Boolean | true or false based on the user action. |
close | — | Emitted when the cancel action is chosen. |