CheckBoxList - shannah/CodeRAD GitHub Wiki
<checkBoxList>
• javadoc
All mutable properties of the CheckBoxList class have a corresponding attribute. In addition, the following XML attributes are available. See javadoc.
Tip
|
The model attribute is required, as it supplies the list model that is used to populate the list of checkboxes.
|
- buttonUiid
-
The style to use for the individual CheckBoxes.
- model
-
The MultipleSelectionListModel to use as the list model for this list. You can supplie a list of strings using the "csv:" prefix, and it will automatically convert them into an appropriate model. You can also use the
EntityList.toMultipleSelectionListModel()
to convert an entity list into a view model. - toggle
-
true|false
. Sets the checkbox to be a toggle button instead of a checkbox.
<checkBoxList toggle="true"
buttonUiid="MyToggleButton"
model="csv:Red, Green, Blue"
/>
theme.css
MyToggleButton {
cn1-derive: Button;
margin: 1mm;
background-color: #cccccc;
border-radius: 2mm;
padding: 0.5rem;
border: 1px solid gray;
color: gray;
}
MyToggleButton.pressed {
background-color: blue;
color: white;
}
![CheckBoxList buttonUiid](https://github.com/shannah/CodeRAD/wiki/images/CheckBoxList-buttonUiid.png)
-
RADButtonList - Can be used to bind the
<checkboxList>
to a view property.