Section author: Jonathon Love
ComboBox displays the selected value from a preset list of options.
In addition to any inherited properties, a
Sets the options to be displayed in the drop-down list. This property is
to be used as an override of the
array of objects consisting of
Supported Option Types
When the option binding is to a
List a few properties are needed for it to work.
The below example shows an option with the name
ss. This option has a property called
options which describes three mutually exclusive sub-options that
are possible values for the options output. A
List returns the name of one of these sub-options as a string.
ComboBox can be used to manipulate a ‘List’ option by changing its value to the option selected in the drop-down.
- name: ss title: Sum of squares type: List options: - title: Type 1 name: '1' - title: Type 2 name: '2' - title: Type 3 name: '3' default: '3' description: R: > `'1'`, `'2'` or `'3'` (default), the sum of squares to use
ComboBox can completely encapsulate a
List option which makes its definition very simple. The control will use the options
title as a
options as the contents for the drop-down.
options can be defined in the control definition if it is required to override the values
of the option.
UI Control Definition
- type: ComboBox name: ss