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.
精彩评论