Skip to content

selector - Text / Icon Selector#


The icon values must match the name using the MivaIconMap in admin/ui.js which can be found in the LSK.

Example#

Text Selector#

{
    "code": "PROPERTY_CODE",
    "prompt": "PROPERTY_PROMPT",
    "type": "selector",
    "options": [
        {
            "text": "Top",
            "value": "top"
        },
        {
            "text": "Center",
            "value": "center"
        },
        {
            "text": "Bottom",
            "value": "bottom"
        }
    ]
}

Icon Selector#

{
    "code": "PROPERTY_CODE",
    "prompt": "PROPERTY_PROMPT",
    "type": "selector",
    "options": [
        {
            "text": "align_left",
            "type": "icon",
            "value": "left"
        },
        {
            "text": "align_center",
            "type": "icon",
            "value": "center"
        },
        {
            "text": "align_right",
            "type": "icon",
            "value": "right"
        }
    ]
}