-
5 Apr 2011 11:52 AM #1
multi level toolbar
multi level toolbar
Newbie question here.
How do you create a toolbar that is more than one level? Is there such thing as a "newline" item that you can stick in your toolbar items so everything after shows up below the top level of items?
Thanks!
-
6 Apr 2011 4:51 AM #2Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- Frederick MD, NYC, DC
- Posts
- 16,167
- Vote Rating
- 28
You should be able to just dock a container, that implements a vbox layout, allowing you to add as many toolbars as you want.

Jay Garcia @ModusJesus || Modus Create co-founder
Ext JS in Action author
Sencha Touch in Action author
Get in touch for Ext JS & Sencha Touch Touch Training
We are also working on Video-based Sencha Touch training: Check it out here.
-
6 Apr 2011 6:27 AM #3
yep - that worked
yep - that worked
Thanks!
Using dockedItems - I can just put as many toolbars as I want stacked on top of each other:
Code:new Ext.grid.GridPanel( { store: resultStore, height: 500, selModel: sm, dockedItems: [ { xtype: 'toolbar', dock: 'top', items: [ { xtype: 'button', text: 'button1' }, { xtype: 'button', text: 'button2' }, { xtype: 'button', text: 'Yesterday' }, { xtype: 'button', text: 'Today' } ] }, { xtype: 'toolbar', dock: 'top', items: [ { xtype: 'button', text: 'Delete' }, { xtype: 'button', text: 'Create', menu: createMenu }, { xtype: 'button', text: 'Search' } ], headers: [ { text: 'Status', dataIndex: 'Status' },{ text: 'Name', dataIndex: 'Name' },{ text: 'Value', dataIndex: 'Value' }] } );
Similar Threads
-
[Solved] Multi-level / 2nd level JSON access
By jasondeegan in forum Ext 2.x: Help & DiscussionReplies: 2Last Post: 13 Sep 2009, 8:41 AM -
Multi-Level Grouping Grid
By jurban in forum Ext 2.x: Help & DiscussionReplies: 3Last Post: 14 Jul 2009, 9:07 AM -
Multi-Level Toolbars?
By RyanZec in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 14 Jul 2008, 5:27 AM -
Multi Level Column Tree
By Lloyd K in forum Ext 2.x: Help & DiscussionReplies: 4Last Post: 30 Jan 2008, 3:29 PM -
Multi-Level JSONView
By JeffBurr in forum Ext 1.x: Help & DiscussionReplies: 5Last Post: 18 May 2007, 8:17 AM


Reply With Quote