Hybrid View
-
17 Apr 2012 5:33 AM #1
Answered: Extra button in NestedList title bar
Answered: Extra button in NestedList title bar
Hi,
Simple question: How can I add an extra button in the titlebar of a nestedlist?
Schermafbeelding 2012-04-17 om 15.06.25.JPG
Thx!
-
Best Answer Posted by Lapidus
Allright,
found the solution myself. Here it is:
Code:new Ext.NestedList(({ fullscreen: true, toolbar: { items: [{xtype: 'spacer'}, MVCChinTok.views.CartBtn] }, title: 'Chintok',
-
17 Apr 2012 9:17 AM #2
Allright,
found the solution myself. Here it is:
Code:new Ext.NestedList(({ fullscreen: true, toolbar: { items: [{xtype: 'spacer'}, MVCChinTok.views.CartBtn] }, title: 'Chintok',
-
1 May 2012 12:31 PM #3
How to do it in Sencha 2
How to do it in Sencha 2
Hey, I would like to do the same thing but in Sencha Touch 2 with the custom button aligned to the right. Anyone knows how ?
-
20 May 2012 12:04 AM #4
Did you manage to get a solution for Sencha Touch 2?
the toolbar config in the nestedlist seems to work, but how to only display the button on the final card and right aligned?
Thanks...
-
20 May 2012 1:05 AM #5
ok just did it
pretty straight forward actually:
hope this helps anyone else in miseryCode:Ext.define('myapp.view.Stock', { extend: 'Ext.dataview.NestedList', xtype: 'xtype-stock', config: { store: 'mystore', loadingText: 'Loading...', title: 'Stock', detailCard: { xtype: 'xtype-item', }, toolbar: { items: [{text: 'Add item', ui: 'round', id:'btnToolbarItemAdd', align: 'right'}] },


Reply With Quote