Skip to content

6l. Cell: OrderedOption

i_82 edited this page Mar 26, 2018 · 2 revisions

OrderedOption 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 dragging option cells to an ordered "Selected" section.

Key Type Description Flags Default
options Array <Dictionary> option dictionary list Required -
minCount Number minimum selection limit Optional 0
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

Example

{
    "default": ["Red"],
    "label": "List of Ordered Options",
    "cell": "OrderedOption",
    "key": "list-3",
    "maxCount": 2,
    "minCount": 1,
    "options": [
        {
            "title": "Red"
        },
        {
            "title": "Green"
        },
        {
            "title": "Blue"
        }
    ]
}

Clone this wiki locally