Parameters
| Property | Type | Required | Description |
|---|---|---|---|
| content | String | No | Toast message (required if type is exception) |
| type | String | No | Toast type: success, fail, exception, none (default: none) |
| duration | Number | No | Display duration in ms (default: 2000) |
| success | Function | No | Callback on success |
| fail | Function | No | Callback on failure |
| complete | Function | No | Callback that always executes |
Code Example
Related APIs
my.hideToast
Hide toast
my.showLoading
Show loading indicator