2 Replies Latest reply on Aug 10, 2011 9:13 AM by stevemcl5

    ListFormItemRenderer - where is it?

    stevemcl5

      Hi, I'm using Flex 4.5.1 and I'm using spark.components.ListFormItemRenderer

      key assist is active for it, however I cannot find it in any documentation,

      Is it supported?

      Can I continue using it?

      Google search on 'ListFormItemRenderer' turns up nothing,

      Adobe search on 'ListFormItemRenderer' turns up nothing.

       

      spart.components.ListFormItemRenderer

      [Inherited] The IconItemRenderer class is a performant item renderer optimized for mobile devices. It displays four optional parts for each item in the list-based control:
      An icon on the left defined by the iconField or iconFunction property.
      A single-line text label next to the icon defined by the labelField or labelFunction property.
      A multi-line message below the text label defined by the messageField or messageFunction property.
      A decorator icon on the right defined by the decorator property.
      To apply CSS styles to the single-line text label, such as font size and color, set the styles on the IconItemRenderer class. To set styles on the multi-line message, use the messageStyleNameM style property. The following example sets the text styles for both the text label and message:

       

           <fx:Style>
               .myFontStyle {
                   fontSize: 15;
                   color: #9933FF;
               }
       
           </fx:Style>
          
           <s:List id="myList"
               width="100%" height="100%"
               labelField="firstName">
               <s:itemRenderer>
                   <fx:Component>
                       <s:IconItemRenderer messageStyleName="myFontStyle" fontSize="25"
                           labelField="firstName"
                           messageField="lastName"
                           decorator="@Embed(source='assets/logo_small.jpg')"/>
                   </fx:Component>
               </s:itemRenderer>
               <s:ArrayCollection>
                   <fx:Object firstName="Dave" lastName="Duncam" company="Adobe" phone="413-555-1212"/>
                   <fx:Object firstName="Sally" lastName="Smith" company="Acme" phone="617-555-1491"/>
                   <fx:Object firstName="Jim" lastName="Jackson" company="Beta" phone="413-555-2345"/>
                   <fx:Object firstName="Mary" lastName="Moore" company="Gamma" phone="617-555-1899"/>
               </s:ArrayCollection>
           </s:List>

       

      Default MXML property: content
      See Also:
      spark.components.List
      mx.core.IDataRenderer
      spark.components.IItemRenderer
      spark.components.supportClasses.ItemRenderer
      spark.components.LabelItemRenderer
      Language Version:
      3.0
      Player Version:
      AIR 2.5
      Product Version:
      Flex 4.5

       

      thanks,

      steve