{ "type": "class", | |
"qname": "org.apache.royale.html.beads.LabelFunction", | |
"baseClassname": "org.apache.royale.core.Bead" | |
, | |
"description": "The LabelFunction bead is a specialty bead that can be used with item renderer based components and gives label function capability to them The renderer needs to have support for labelFunction in order to work properly", | |
"tags": [ | |
{ "tagName": "playerversion", | |
"values": ["Flash 10.2", "AIR 2.6"]}, | |
{ "tagName": "productversion", | |
"values": ["Royale 0.10.0"]}, | |
{ "tagName": "langversion", | |
"values": ["3.0"]} ], | |
"members": [ | |
{ "type": "method", | |
"qname": "org.apache.royale.html.beads.LabelFunction", | |
"namespace": "", | |
"bindable": [], | |
"details": [], | |
"deprecated": {}, | |
"description": "constructor.", | |
"tags": [ | |
{ "tagName": "playerversion", | |
"values": ["Flash 10.2", "AIR 2.6"]}, | |
{ "tagName": "productversion", | |
"values": ["Royale 0.10.0"]}, | |
{ "tagName": "langversion", | |
"values": ["3.0"]} ], | |
"return": "", | |
"params": []} | |
, | |
{ "type": "accessor", | |
"access": "read-write", | |
"return": "Function", | |
"qname": "labelFunction", | |
"namespace": "public", | |
"bindable": [], | |
"details": [], | |
"deprecated": {}, | |
"description": "A user-supplied function to run on each item to determine its label. By default, the list looks for a property named <code>label</code> on each data provider item and displays it. However, some data sets do not have a <code>label</code> property nor do they have another property that can be used for displaying. An example is a data set that has lastName and firstName fields but you want to display full names. <p>You can supply a <code>labelFunction</code> that finds the appropriate fields and returns a displayable string. The <code>labelFunction</code> is also good for handling formatting and localization. </p> <p>For most components, the label function takes a single argument which is the item in the data provider and returns a String.</p> <pre>\\n myLabelFunction(item:Object):String</pre> <p>The method signature for the data grid classes is:</p> <pre>\\n myLabelFunction(item:Object, column:DataGridColumn):String</pre> <p>where <code>item</code> contains the DataGrid item object, and <code>column</code> specifies the DataGrid column.</p>", | |
"tags": [ | |
{ "tagName": "default", | |
"values": ["null"]}, | |
{ "tagName": "playerversion", | |
"values": ["Flash 9", "AIR 1.1"]}, | |
{ "tagName": "productversion", | |
"values": ["Royale 0.10.0"]}, | |
{ "tagName": "langversion", | |
"values": ["3.0"]} ]}] | |
} |