PDA

View Full Version : Changing Disabled Field Style



netnutmike
30 Dec 2010, 9:32 AM
Hello,

I have what may sound like a silly question. I want to change the style of a disabled field. I have already used the disabledCLS and set it to 'x-field' in the hopes of making it look just like when a field is enabled (see code snippit below). This does make it darker and the label looks normal. It looks like there is an opacity setting of like .7 on disabled fields. I looked through the css and did not see anything for changing the opacity on disabled fields.

I know it sounds silly but apparently disabled fields are hard to read in sunlight.

If there is a better method to make the field as dark as when it is active please let me know. I am still learning the sencha touch but loving it so far!

Happy New Year!



{
xtype: 'textfield',
name : 'groupName',
label: 'Group Name',
disabledCls: 'x-field',
disabled: true
}