-
Notifications
You must be signed in to change notification settings - Fork 19
6k. Cell: MultipleOption
i_82 edited this page Mar 26, 2018
·
4 revisions
MultipleOption cell is a plain cell with disclosure indicator. It navigates user to a XUI pane with several option cells. User can select more than 1 option by placing checkmark on option cells. The order of selected option values is undefined.
| Key | Type | Description | Flags | Default |
|---|---|---|---|---|
| options | Array <Dictionary> | option dictionary list | Required | - |
| maxCount | Number | maximum selection limit | Optional | INT_MAX |
| footerText | String | footer text for the option pane | Optional, Localizable | "" |
| popoverMode | Boolean | present option pane as a popover | Optional | false |
options is an array contains option dictionary:
| Key | Type | Description | Flags | Default |
|---|---|---|---|---|
| title | String | option title | Required, Localizable | - |
| value | Any? | option value | Optional | the same to title |
| icon | String | option icon image name | Optional | nil |
value Type |
Description |
|---|---|
| Array <Any?> | array of values for selected options without order |
{
"default": ["Red; it's red!", "Green; it's green!"],
"label": "List of Multiple Options",
"cell": "MultipleOption",
"key": "list-2",
"options": [
{
"title": "Red; it's red!"
},
{
"title": "Green; it's green!"
},
{
"title": "Blue; great color!"
}
]
}