-
9 Jan 2012 12:23 PM #1
Answered: TabBar or ToolBar Dock Left (or Right)
Answered: TabBar or ToolBar Dock Left (or Right)
So I've searched through the forums, examples, the api, etc and even though the api provides for docking a toolbar or tabbar to the left or the right, I've yet to see it be placed vertically along the page. Instead it creates a new panel and the tabbar/toolbar is run horizontally along the top or bottom of that docked panel.Is there a way to get the tabbar or a toolbar that uses docking along the left or right sides, but that runs vertically instead docked meaning that it creates a new panel and throws the tabbar/toolbar at the top or bottom? Just so that you have an example of what I'm talking about: Screen Shot 2012-01-09 at 1.20.22 PM.jpgThe screenshot was taken from Apple's website, of an app put out by "zendesk."If this isn't possible, have you guys thought about making it possible??
Thanks so much for the help-Geoff
-
Best Answer Posted by mitchellsimoensLooks like it would work. There is a CSS property you need to get the height correct though:Code:
Ext.create('Ext.Container', { fullscreen : true, items : [ { xtype : 'toolbar', docked : 'left', layout : { type : 'hbox', align : 'start' }, items : [ { cls : 'refresh', ui : 'plain' } ] } ] });
Code:.x-toolbar.x-docked-left { height : auto; }
-
9 Jan 2012 12:52 PM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,656
- Vote Rating
- 435
- Answers
- 3107
Looks like it would work. There is a CSS property you need to get the height correct though:Code:Ext.create('Ext.Container', { fullscreen : true, items : [ { xtype : 'toolbar', docked : 'left', layout : { type : 'hbox', align : 'start' }, items : [ { cls : 'refresh', ui : 'plain' } ] } ] });
Code:.x-toolbar.x-docked-left { height : auto; }Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
9 Jan 2012 2:38 PM #3
Wow
Wow
Hey,
I appreciate the response . . . makin a believer out of me of the Sencha product
I'll plug that in and let ya know what I find. Thanks again.
-Geoff
-
10 Jan 2012 9:22 AM #4
Worked like a charm
Worked like a charm
I plugged that in and got the desired effect, there is some CSS tweaking that needs to be done, but I'll manage that. Thank you again for the help.
-Geoff
-
10 Jan 2012 9:35 AM #5Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,656
- Vote Rating
- 435
- Answers
- 3107
Fantastic! Happy coding!
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.


Reply With Quote