ComboBoxPropertyView - shannah/CodeRAD GitHub Wiki

ComboBoxPropertyView

<radComboBox>javadoc

ComboBoxPropertyView

Synopsis

A ComboBox component that is bound to a view property.

Usage

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>

Attributes

tag

The view model property to bind to.

View Model

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.

Examples

<?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
⚠️ **GitHub.com Fallback** ⚠️