Thanks for your answer Matt!
 
In fact, I already solved it by using the cellRenderer of the DataGrid as you mention. I just didn't know where to start. And I didn't know you could use a MXML as a cellrenderer (always thought it was limited to AS). I discovered this at the Flex 2 docs, which I usually don't read since many things have changed from 1.5 to 2.
 
Thanks again!
Pablo Apanasionek


De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] En nombre de Matt Chotin
Enviado el: Viernes, 07 de Abril de 2006 02:03
Para: flexcoders@yahoogroups.com
Asunto: RE: [flexcoders] Flex 1.5 :: List of Custom Components?

Does the cellRenderer property of List not do enough for you?  If it doesn’t you’ll probably need to start from scratch, I don’t know if we’ve documented enough in 1.5 for you to get a subclass of List working where you change the children type.

 

Matt

 


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Pablo Apanasionek
Sent: Thursday, April 06, 2006 6:03 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex 1.5 :: List of Custom Components?

 

Hey!

 

Let's set the scenario: I want to create a list of custom components (MXML) that I can set as a tag in any MXML file. Should I create a custom list component that inherits from a default one? In this case, which one? Or can I use any List component? Should I set some property on the custom item component to accomplish my goal?

 

I would like the container to have the usual List behaviour (scroll, mouseOver and selected, plus drag-and-drop capability).

 

Thanks in advance!

Pablo Gustavo Apanasionek




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




YAHOO! GROUPS LINKS




Reply via email to