-
27 Jul 2012 4:52 AM #1
Applying Custom CSS or theme chnages
Applying Custom CSS or theme chnages
Can i change the look and feel of a component in extjs 4 , I am a newbie just trying my hands .
I want to change some of the styling of components like buttons
any ideas?
-
27 Jul 2012 5:28 AM #2
Hi,
you can give custom css your Ext component as like:
CSS:Code:{ xtype: 'button' , text: 'Click Me!' , cls: 'buttonT' //custom css }
OUTPUT:Code:<style type="text/css"> .buttonT{ background:red !important; border:solid 1px red !important; width:200px !important;} </style>
btna.pngsword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.
-
27 Jul 2012 7:51 PM #3
Hi,
When you've got through with trying to customize Sencha components using css overrides you could have a look at the theming guides for how to create a site themed your way.
have a look at. http://docs.sencha.com/ext-js/4-0/#/guide/theming
and http://docs.sencha.com/ext-js/4-0/#!/video/19159630
SASS and Compass are a fantastic tools and by simply changing some base variables you can change the look/color of an entire Sencha application.
The same toolset is used with the Sencha Touch framework.
We built an application and changed the $basecolor variable and it changed the color of 90% of the Sencha components.
All the best
-
30 Jul 2012 4:57 AM #4Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- Frederick MD, NYC, DC
- Posts
- 16,170
- Vote Rating
- 33
What ever you choose, be sure to use one way of formatting your code.

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.
-
Yesterday 8:19 AM #5
Hi,
I am newbie to ExtJs and was looking for all the available styles for a component.
Say for example I need to find all the styles available for Ext.panel.Panel, where do I get it from?
Did not see styles in Ext JS documentation.
http://docs.sencha.com/extjs/4.1.0/#...xt.panel.Panel
Please help!


Reply With Quote