OptionButton, Combo, ListBox animations
The Option Button,Combo and ListBox animations allow you to change the value of an item of Realtime Database setting a default value: the value set in item depends on the associated option selected, depending on the binding mode selected.
When Selection mode is set to index, the value of the item is populated with the index of the selected option (the index of the first option is 0).
When Selection mode is set to code, the value of the item is populated with the numeric code (or alphanumeric, only for Text type item) associated with the option selected during configuration
When Selection mode is set to text, the text of the selected option is copied into the value of the item associated with it. If the text of the option consists solely of numeric characters, it can be interpreted as a numeric value and be transferred to an item of type Analogue; if the option text contains alphanumeric characters, only items of type Text can manage the association for text.
Note: if the system manages multiple language support (translations) then the animation takes account of any translations defined for the current language.
The Option Button,Combo and ListBox animations show a similar behavior, differing only in the mode of representation of options:
- The OptionButton animation defines a series of radio buttons wich have a unique selection. The selection of an option is done by clicking on it. A circular placeholder indicates the currently selected option, determined by the value of the item associated with the animation.
- The Combo animation implements a text box with a drop-down list ("Combo Box"). The available options are displayed when you press the down button to the right of the box and you can select an option exclusively by clicking on it. The currently selected option, depending on the value of the item associated with the animation, it is displayed in the box.
- The ListBox animation displays a list of available options that can be selected exclusively by clicking on them.
The currently selected option, depending on the value of the item associated animation, is highlighted.