Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

When defining enum in ds.xml, can i somehow define valueicons?

$
0
0
In my DS enums, i have 'valueMap' that always gets picked up as i would like. For example:
Code:

<valueMap>
                <value id="0">-</value>
                <value id="1">Green</value>
                <value id="2">Yellow</value>
                <value id="3">Red</value>
            </valueMap>

However, i would like to have icons also, in addition to or instead of the text as values. Can this be done?

I tried defining a
Code:

            <valueIcons>
                <value id="0"></value>
                <value id="1">images/trafficlights/green.png</value>
                <value id="2">images/trafficlights/yellow.png</value>
                <value id="3">images/trafficlights/red.png</value>
            </valueIcons>

But that didn't work. If i could define it next to the values in the map somehow would be great!

Viewing all articles
Browse latest Browse all 4756

Trending Articles