31 Jul 2011 1:45 PM #1
Panel/components Inside List Item instead of TPL
I would like to add a panel instead of a TPL to each of the items in my list. what is the best way to achieve this?
31 Jul 2011 2:10 PM #2
Why do u need panel instead tpl? What do you expect from the panel? I think if u put id to the template, you can access items by ID. Then you can easily add any event etc. I know Ext.Panel is complete component so do not have to worry about anything.
When you can check line 284 in List.js u will see following line:
this.tpl = '<tpl for="."><div class="x-list-item ' + this.itemCls + '"><div class="x-list-item-body">' + this.itemTpl + '</div>';
1 Aug 2011 2:15 PM #3
A panel was just an example for a container.
I would like to design an advance list item with various nested widgets with events, css,etc
Manually adding them is quite a hassle.
1 Aug 2011 2:38 PM #4
Thats what im trying to do now... I find too many problems when you need to do everything manually. I think only way is overide List.js - question is when come and what brings new version of sencha touch
17 Aug 2011 6:59 AM #5
For example, panels inside list as rows
Have you found any solution to the issue he had proposed?
If so, I would be very helpful to me commented
19 Aug 2011 12:36 AM #6
I've created a new kind of list that can enable this functionality.
My solution is not elegent but working for most cases.
19 Aug 2011 1:35 AM #7
I would be very grateful if I could show the code of what you've done.
This website provides an example of what I'd like to do, in option file Mgr.
When you click on the rows a bar appears to the right with sevral util buttons.
19 Aug 2011 2:32 PM #8
I sent you a PM in spanish asking for some help.
19 Aug 2011 2:36 PM #9
11 Nov 2011 10:07 AM #10
Slider on ListItem
i have a similar Problem...
I would like to add a slider or a toggle to a ListItem. I hoped i could set the List defaultType: to a Panel. But it seems it doesn't work.
Has anybody a solution for this?