Tracy,

I understood from the original e-mail that he was using a component as an itemRenderer. If his 'item object' is being used an itemRenderer he would have to create numerous mods to the list based classes to pass in properties other than "data" or "listData".
Mike,

I'm not sure which class you're using, nor how your dataProvider is structured. But, if you just need to add the value to the objects in your dataProvider. If you have simple objects (like Strings) in your dataProvider, you'll need to wrap up them up in an object, probably by creating a Value Object style class.
Tracy Spratt wrote:
Why not include the string in a property  in the item object?

Tracy Spratt,

Lariat Services, development services available

------------------------------------------------------------------------

*From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *InvertedSpear
*Sent:* Wednesday, November 18, 2009 10:15 AM
*To:* flexcoders@yahoogroups.com
*Subject:* [SPAM] Re: [flexcoders] Passing an object to a rendererProvider


Passing the data as part of the data object seems like what I need to do, in
fact if I can do that then I can pass the simple string instead of the
entire object, but how do I do that?

Thanks
~Mike

Jeffry Houser-2 wrote:
>
>
> What component are you using?
>
> Most list based classes have a ListData property passed into
> itemRenderers. You can extend ListData to contain your custom data, and
> extend the List class to use your new ListData class with new data.
> You could also pass in the relevant data as part of your itemRenderer's
> data object.
>

--
View this message in context: http://old.nabble.com/Passing-an-object-to-a-rendererProvider-tp26396466p26408398.html <http://old.nabble.com/Passing-an-object-to-a-rendererProvider-tp26396466p26408398.html>
Sent from the FlexCoders mailing list archive at Nabble.com.



--
Jeffry Houser, Technical Entrepreneur
Adobe Community Expert: http://tinyurl.com/684b5h
http://www.twitter.com/reboog711  | Phone: 203-379-0773
--
Easy to use Interface Components for Flex Developers
http://www.flextras.com?c=104
--
http://www.theflexshow.com
http://www.jeffryhouser.com
--
Part of the DotComIt Brain Trust

Reply via email to