| Pakket | spark.utils |
| Klasse | public class LabelUtil |
| Overerving | LabelUtil Object |
| Taalversie: | ActionScript 3.0 |
| Productversie: | Flex 4 |
| Runtimeversies: | Flash Player 10, AIR 1.5 |
Openbare eigenschappen
Openbare methoden
| Methode | Gedefinieerd door | ||
|---|---|---|---|
![]() |
Geeft aan of voor een object een opgegeven eigenschap is gedefinieerd. | Object | |
![]() |
Geeft aan of een instantie van de klasse Object zich in de prototypeketen van het object bevindt dat als parameter is opgegeven. | Object | |
[statisch]
A function used by components that support item renderers
to determine the correct text an item renderer should display for a data item. | LabelUtil | ||
![]() |
Geeft aan of de opgegeven eigenschap bestaat en kan worden opgesomd. | Object | |
![]() |
Stelt de beschikbaarheid van een dynamische eigenschap voor lusbewerkingen in. | Object | |
![]() |
Geeft de tekenreeksweergave van dit object weer, geformatteerd volgens de locatiespecifieke conventies. | Object | |
![]() |
Retourneert een tekenreeksrepresentatie van het opgegeven object. | Object | |
![]() |
Retourneert de primitieve waarde van het opgegeven object. | Object | |
Methodedetails
itemToLabel | () | methode |
public static function itemToLabel(item:Object, labelField:String = null, labelFunction:Function = null):String| Taalversie: | ActionScript 3.0 |
| Productversie: | Flex 4 |
| Runtimeversies: | Flash Player 10, AIR 1.5 |
A function used by components that support item renderers
to determine the correct text an item renderer should display for a data item.
If no labelField or labelFunction parameter
is specified, the toString() method of the data item
is called to return a String representation of the data item.
The labelFunction property takes a reference to a function.
The function takes a single argument which is the item in
the data provider and returns a String:
myLabelFunction(item:Object):String
Parameters
item:Object — The data item. Null items return the empty string.
| |
labelField:String (default = null) — The field in the data item to return. If labelField is set
to an empty string (""), no field will be considered on the data item
to represent label.
| |
labelFunction:Function (default = null) — A function that takes the data item
as a single parameter and returns a String.
|
String — A String representation for the data item
|
Wed Jun 13 2018, 11:42 AM Z
Overerfde openbare eigenschappen verbergen
Overerfde openbare eigenschappen weergeven