Forum /
Sencha Touch 1.x Forums /
Sencha Touch 1.x: Discussion /
Ext.List consisting of Components?
Ext.List consisting of Components?
Is it possible to use Ext.List, where each item is a Component?
I don't want to use itemTpl to render individual items, since the child items are relatively complex and a Component is a much better fit.
Any opinions/suggestions on how to address this?
Ext JS Premium Member
As far as I know you can't.
The way one is usually doing this is something like Ext.each(Ext.select('.item'), function (item) {
button = new Button;
button.renderTo(item);
});
which you execute afterrender and onUpdate. (For the latter is no event I think, you have to extend the method.)
Sencha - Community Support Team
Originally Posted by
senchauser2010
Is it possible to use Ext.List, where each item is a Component?
If you need to display a bunch of Components, that would be a Layout. The List is just a Component for displaying data.
Similar Threads
By dorchard in forum Sencha Touch 1.x: Discussion
Replies: 4
Last Post: 12 Dec 2011, 8:20 AM
By mamiano in forum Sencha Touch 1.x: Discussion
Replies: 5
Last Post: 7 Sep 2010, 12:30 PM
By meyerovb in forum Sencha Touch 1.x: Discussion
Replies: 2
Last Post: 10 Aug 2010, 3:56 PM
By joku in forum Ext 2.x: Help & Discussion
Replies: 0
Last Post: 5 Apr 2008, 1:09 PM
Sencha is used by over two million developers. Join the community, wherever you’d like that community to be
or Join Us