2 Replies Latest reply on May 14, 2009 10:42 AM by Flex harUI

    labelFunction in an itemRenderer

    Lee Anthony
       <mx:AdvancedDataGridColumn dataField="theNumber" width="200" headerText="The #">
                          <mx:itemRenderer>
                               <mx:Component>
                                    <mx:VBox width="100%" label="theFormat">
                                         <mx:Text toolTip="Click bug number to view details" click="outerDocument.navigateToNumber(data);" >
                                         <mx:text>{data.theNumber}</mx:text>
                                         </mx:Text>
                                    </mx:VBox>
                               </mx:Component>
                          </mx:itemRenderer> 
                     </mx:AdvancedDataGridColumn>
      

      I am trying to use an itemRenderer to provide a different toolTip and click value for each item in a grid.  This works well but I would like to format the <mx:text> using a labelFunction (or equivalent).  Is there any way to do this?