ComboBoxPropertyView - shannah/CodeRAD GitHub Wiki
<radComboBox>
• javadoc
![ComboBoxPropertyView](https://github.com/shannah/CodeRAD/wiki/images/ComboBoxPropertyView.png)
A ComboBox component that is bound to a view property.
The <radComboBox>
should wrap a <comboBox>
tag. The tag
attribute specifies a view model property to bind to.
Example
<radComboBox>
bound to the favColor
view property.<define-tag name="favColor"/>
<radComboBox tag="favColor">
<comboBox model="csv:Red, Green, Blue, Orange, Black"/>
</radComboBox>
The bound property needs to be compatible with the row-type of the list model of the ComboBox.
The bound property should match the row-type of the ComboBox list model. E.g. If the ComboBox model includes Strings, then the bound property should be of type String
. If the ButtonList model includes Entity
objects, then the bound property should be of type Entity
.
<?xml version="1.0" encoding="UTF-8" ?>
<y xsi:noNamespaceSchemaLocation="RADComboBoxSample.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<title>RADComboBox Sample</title>
<define-tag name="favColor"/>
<radComboBox tag="favColor">
<comboBox model="csv:Red, Green, Blue, Orange, Black"/>
</radComboBox>
<label>You have selected:</label>
<radLabel tag="favColor"/>
</y>
![RADComboBoxSample](https://github.com/shannah/CodeRAD/wiki/images/RADComboBoxSample.png)