5 Replies Latest reply on Jul 31, 2011 3:38 PM by Francisc

    itemRendererFunction help

    Francisc Level 3



      I have an item renderer for a Mobile App that contains a script block where I override set data.

      I want to use itemRendererFunction in order to have some rows be like headers or separators.


      Taking the renderer function from Steven Shongrunden's example from here, which is pasted below, how would I still use code in the above mentioned script block from the itemRenderer?


      public function myRendererFunction(item:*):IFactory
          if (item.selectionEnabled == false)
              return new ClassFactory(HeadingItemRenderer);
              return new ClassFactory(DetailItemRenderer);


      Thank you.