The RadioButtonElement is a component to display and edit CHOICE type M&C parameters as a number of radio buttons. Depending on the height of the element, radio buttons are positioned in a row or in a column (height<=40 means position horizontally). The radio buttons are labeled with the choices of the parameter, there are as many radio buttons as choices in the parameter range.
Data Model (extends ScreenElement)
| Key | Type | Value |
|---|---|---|
| type | String | Always "RadioButtonElement". |
| xpos | Number | see ScreenElement |
| ypos | Number | see ScreenElement |
| width | Number | see ScreenElement |
| height | Number | see ScreenElement |
| id | String | The message ID this element listens to |
| privilege | Number | The privilege level requires to change this parameter |
| label | String | A label shown above the field / drop down |
| enableId | String | The enable ID (may be empty) |
| enableValue | String | The value which must be matched to enable the field |
| font | String | The font to be used |
| color | String | The color used for the label (#RRGGBB) |
| mustQuery | Boolean | true = show a query popup before changing the value |
| queryText | String | The text to show in the query. If empty, a default query text shall be used. |
| drawFrame | Boolean | true = draw a gray rectangle around the radio button group. |
| variableBackgroundColor | Boolean | true = use a variable background color. |
| colorId | String | The message ID to listen for the background color |
| colors | Array | of ColorDefinition objects. Defines how to translate values of the colorId parameter to color values. |