ActionScript 2.0 Components Language Reference |
|
|
|
| CellRenderer API > CellRenderer.getDataLabel() | |||
Flash Player 6 (6.0.79.0).
Flash MX 2004.
componentInstance.getDataLabel()
None.
A string.
Method; returns a string containing the name of the cell renderer's data field. For the DataGrid component, this method returns the column name for the current cell.
This method is provided by the List class; you do not have to implement it. Declare it in your cell renderer class as follows, and use it in the functions in your cell renderer:
var getDataLabel:Function;
The following code tells the cell the name of the data field that it is rendering. For example, if the name of the data field currently being rendered by the cell is "Price", the variable p is now equal to "Price":
var p = getDataLabel();
|
|
|
|