Parameters
| Property | Type | Required | Description |
|---|---|---|---|
| title | String | No | Action sheet title |
| items | Array | Yes | Array of option strings |
| cancelButtonText | String | No | Cancel button text |
| success | Function | No | Callback with selected index |
| fail | Function | No | Callback on failure |
| complete | Function | No | Callback that always executes |
Success Callback
| Property | Type | Description |
|---|---|---|
| index | Number | Index of selected item (-1 if cancelled) |
Code Example
Related APIs
my.confirm
Show confirmation dialog
my.alert
Show alert dialog