| Pakiet | spark.utils |
| Klasa | public class LabelUtil |
| Dziedziczenie | LabelUtil Object |
| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Flex 4 |
| Wersje środowiska wykonawczego: | Flash Player 10, AIR 1.5 |
Właściwości publiczne
Metody publiczne
| Metoda | Zdefiniowane przez | ||
|---|---|---|---|
![]() |
Wskazuje, czy dla obiektu zdefiniowano określoną właściwość. | Object | |
![]() |
Wskazuje, czy instancja klasy Object należy do łańcucha prototypów obiektu określonego jako parametr. | Object | |
[statyczny]
A function used by components that support item renderers
to determine the correct text an item renderer should display for a data item. | LabelUtil | ||
![]() |
Wskazuje, czy określona właściwość istnieje i jest przeliczalna. | Object | |
![]() |
Ustawia dostępność właściwości dynamicznej używanej w pętlach. | Object | |
![]() |
Zwraca ciąg reprezentujący obiekt — sformatowany zgodnie z konwencjami właściwymi dla ustawień regionalnych. | Object | |
![]() |
Zwraca ciąg reprezentujący określony obiekt. | Object | |
![]() |
Zwraca pierwotną wartość dla określonego obiektu. | Object | |
Szczegół metody
itemToLabel | () | metoda |
public static function itemToLabel(item:Object, labelField:String = null, labelFunction:Function = null):String| Wersja języka: | ActionScript 3.0 |
| Wersja produktu: | Flex 4 |
| Wersje środowiska wykonawczego: | 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
Parametry
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
|
Tue Jun 12 2018, 12:06 PM Z
Ukryj dziedziczone właściwości publiczne
Pokaż dziedziczone właściwości publiczne