开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜