PDA

View Full Version : How to apply common css style for all disabled fields



vinothsencha
23 Apr 2014, 9:51 AM
We are creating a form which contains input fields like Text Field, Number Field, Date, Combo and Check Box..


When we set any of the field as disabled, we are not able to see the background color difference of UI clearly.
So, we want to set the background color little more darker to make difference between enabled and disabled field.


Is it possible to apply a common style for disabled fields? If so, Please tell us the way with some example.


If not, how can we achieve this?

Gary Schlosberg
28 Apr 2014, 4:10 PM
Hopefully you can use the disabledCls config to meet that need:
http://docs.sencha.com/extjs/4.2.1/#!/api/Ext.form.field.Text-cfg-disabledCls