1. #1
    Sencha User
    Join Date
    Nov 2010
    Posts
    44
    Vote Rating
    0
    senchauser2010 is on a distinguished road

      0  

    Question 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?

  2. #2
    Ext JS Premium Member Steffen Hiller's Avatar
    Join Date
    Mar 2008
    Posts
    767
    Vote Rating
    23
    Steffen Hiller will become famous soon enough Steffen Hiller will become famous soon enough

      0  

    Default


    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.)

  3. #3
    Sencha - Community Support Team VinylFox's Avatar
    Join Date
    Mar 2007
    Location
    Baltimore, MD
    Posts
    1,501
    Vote Rating
    7
    VinylFox will become famous soon enough VinylFox will become famous soon enough

      0  

    Default


    Quote Originally Posted by senchauser2010 View Post
    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

  1. Sencha Touch List components not scrolling in PhoneGap
    By dorchard in forum Sencha Touch 1.x: Discussion
    Replies: 4
    Last Post: 12 Dec 2011, 8:20 AM
  2. Selecting multiple components and drag-and-drop, not in a list or grid
    By mamiano in forum Sencha Touch 1.x: Discussion
    Replies: 5
    Last Post: 7 Sep 2010, 12:30 PM
  3. Add components to list item instead of template html
    By meyerovb in forum Sencha Touch 1.x: Discussion
    Replies: 2
    Last Post: 10 Aug 2010, 3:56 PM
  4. Extending Ext.form.ComboBox for adding components to list
    By joku in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 5 Apr 2008, 1:09 PM

Thread Participants: 2

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar