List-selectable-group widget

The list-selectable-group widget displays a list of text items with a header. The user can select one item.

Example

Properties

Property

Description

Data type

event

Name of event that fires when a user clicks the list item.

string

id

Unique identifier of this widget.

string

type Rich-media type, which is always ListSelectableGroup. string

Widget-specific expression evaluations

Property

Description

Data type

selectedIndex

Example: #widget1.list1.selectedIndex

integer

selectedText

Example: #widget1.list1.selectedText

string

Code sample

var obj = {
    "widgetType": "inline",
    "widgetAction": "optional",
    "widgetView": "bubble",
    "nodes":
    [{
            "id": "widget1",
            "controls": {
                "0": {
                    "type": "ListSelectableGroup",
                    "items": ["satisfactory", "excellent"],
                    "id": "list1",
                    "header": "Choose from below"
                }
            }
        }
    ]
}