![]() ![]() ![]() | |
![]() | |
![]() | |
![]() |
Flash Player 6.0.79.
Flash MX 2004.
listInstance
.labelField
Property; specifies a field within each item to be used as display text. This property takes the value of the field and uses it as the label. The default value is "label"
.
The following example sets the labelField
property to be the "name"
field of each item. "Nina" would display as the label for the item added in the second line of code:
list.labelField = "name"; list.addItem({name: "Nina", age: 25});
![]() | |
![]() | |
![]() | |
![]() ![]() ![]() |