Parameters
| Property | Type | Required | Description |
|---|---|---|---|
| title | String | No | Alert title |
| content | String | No | Alert message content |
| buttonText | String | No | Button label (default: “OK”) |
| success | Function | No | Callback on success |
| fail | Function | No | Callback on failure |
| complete | Function | No | Callback that always executes |
Code Example
Related APIs
my.confirm
Show confirmation dialog
my.showToast
Show toast message