开发者

In flex, how to associate value to String under Combo Box?

开发者 https://www.devze.com 2023-01-10 02:06 出处:网络
How can I give value to combo box 开发者_开发知识库entries. For example, in combo box, I have Array Collection and inside it, I am adding strings like mx:String. I want to give it different value than

How can I give value to combo box 开发者_开发知识库entries. For example, in combo box, I have Array Collection and inside it, I am adding strings like mx:String. I want to give it different value than the text. How can I do it?


You can use the labelField property in the ComboBox to specify the field in your dataProvider which will be seen as the label in the dropdown.


alternatively, use the labelFunction to create a label that doesn't necessarily rely on a single field.

0

精彩评论

暂无评论...
验证码 换一张
取 消