showActionSheet(params: Object)
Requires:
BaseKit≥2.0.1@ray-js/ray≥0.3.23
Platforms:
iOSAndroid
Description
Show an action sheet
Parameters
| Property | Type | Required | Description | BaseKit Since |
|---|---|---|---|---|
alertText | string | No | Warning text | - |
itemList | string[] | Yes | Array of button texts, up to 6 items | - |
itemColor | string | Yes | Button text color | - |
itemColors | string[] | No | Button text color | v3.6.8 |
complete | () => void | No | Completion callback (executed on both success and failure) | - |
success | (params: Object) => void | No | Callback on successful API call | - |
fail | (params: Object) => void | No | Failure callback | - |
success callback parameters
| Property | Type | Description | BaseKit Since |
|---|---|---|---|
tapIndex | number | Index of the button the user tapped, ordered top to bottom, starting from 0 | v3.2.6 |
fail callback parameters
| Property | Type | Description |
|---|---|---|
errorMsg | string | Error message |
errorCode | string | number | Error code |
| Error extension |
Return Value
None