簡體   English   中英

Flex中的ComboBox

[英]ComboBox in Flex

我有一個帶有多個選擇的組合框。 當我單擊添加按鈕時,無論在組合框中選擇了哪個數據,這些數據都必須顯示在另一個comboBox中。

請檢查代碼,是否有人可以幫助我。

<mx:HBox>
 <mx:Label width="140" text="{resourceManager.getString   ('resources', 'settings_configuration_database_select_object_instance')}"/>
     <mx:List id="obj_instance" enabled="true" allowMultipleSelection="true" width="164" height="70"/>      
     <mx:Spacer width="20"/>
     <mx:Button label=">>"/>
     <mx:List id="selected_instance" enabled="true" allowMultipleSelection="true" width="164" height="70"/>
</mx:HBox>      

謝謝,拉維

關於什么:

<ov:HPButton label=">>">
    <ov:click><![CDATA[
        for each (var item:* in obj_instance.selectedItems)
            selected_instance.dataProvider.addItem(item);
    ]]></ov:click>
</ov:HPButton>

當然,您必須確保instancedataProvider合理(例如ArrayCollection )……

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM