View Full Version : Custom dataProvider
chrisivens
12-14-2007, 10:15 AM
I'm trying to create a custom component from scratch extending UIComponent. I'd like to use the same flexibility that the dataProvider for the existing components gives you. Would the best method be to copy all needed code from an existing component such as ComboBase.as? Anyone else done a similar thing? I'm after a bit of a pointer to get me on my way.
dr_zeus
12-14-2007, 06:32 PM
If you want to be able to support the same Arrays, XMLLists, collections, and everything else List and other components support, you mainly only need to copy the dataProvider setter from one of those classes. I believe ListBase has a good one that is reused by List, Tree, DataGrid, and others.
chrisivens
12-15-2007, 01:10 PM
thanks, I've been looking at the ListBase and I think it does what I need. Obviously there is scope to display the data in any way needed as demonstrated by the datagrid and tree classes. Thanks for the help
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.