Parameters
| Property | Type | Required | Description |
|---|---|---|---|
| title | String | No | Dialog title |
| content | String | No | Dialog message |
| confirmButtonText | String | No | Confirm button text (default: “OK”) |
| cancelButtonText | String | No | Cancel button text (default: “Cancel”) |
| success | Function | No | Callback with result |
| fail | Function | No | Callback on failure |
| complete | Function | No | Callback that always executes |
Success Callback
| Property | Type | Description |
|---|---|---|
| confirm | Boolean | true if user tapped confirm button |
Code Example
Related APIs
my.alert
Show alert dialog
my.prompt
Show input dialog