-
30 Nov 2011 12:58 AM #1
How to design the docked buttons??
How to design the docked buttons??
Hi,
Is it possible to change the design of the buttons like submit, back etc which are used in the docked toolbars.
For eg :-
I have used the following button,
I had named it to a different class and gave style accordingly :Code:{ xtype:'button', class:'submitbutton', text:'Submit', handler:function(){ Test.Viewport.setActiveItem('second',{type:'slide', direction:'left'}); } }
But the styles are having no effect. Please let me know how can i change the designs of the buttons.Code:.submitbutton{ background-color:#FFF; border-radius:7px; color:#000; padding:10%; }
Thanks
Roy M J
-
30 Nov 2011 8:23 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,599
- Vote Rating
- 434
Instead of using 'class', use 'cls'
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.
-
1 Dec 2011 3:53 PM #3
I suggest you use `ui` instead of `cls`, and use the SASS mixins to generate a new style of button for your application.
Documentation here: http://docs.sencha.com/touch/2-0/#!/...ncha-button-uiSencha Inc.
Robert Dougan - @rdougan
Sencha Touch 2 and Ext JS 4 Core Team Member, SASS/Theming Wizard.



Reply With Quote