<edit:SingleTagEditor
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:mx="library://ns.adobe.com/flex/mx"
+ xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:edit="net.systemeD.potlatch2.mapfeatures.editors.*"
toolTip="{fieldDescription}"
direction="{fieldDirection}" styleName="titledEditor">
<mx:Label text="{fieldName}:"/>
- <edit:ChoiceComboBox id="inputBox" dataProvider="{choices}" selectedItem="{selectFromTag}" rowCount="15"
- change="value = inputBox.selectedItem.value"
- open="inputBox.dropdown.variableRowHeight = true">
- <edit:itemRenderer>
+ <s:DropDownList id="inputBox" dataProvider="{choices}" selectedItem="{selectFromTag}"
+ change="value = inputBox.selectedItem.value" labelField="label">
+ <s:itemRenderer>
<fx:Component>
<mx:HBox toolTip="{data.description}" horizontalScrollPolicy="off">
<mx:Image source="{Choice(data).icon}"/>
<mx:Label htmlText="{data.label}"/>
</mx:HBox>
</fx:Component>
- </edit:itemRenderer>
- </edit:ChoiceComboBox>
+ </s:itemRenderer>
+ </s:DropDownList>
<fx:Script><![CDATA[
import mx.collections.*;