PDA

View Full Version : How to change CSS of textField



pbaccari
14 Nov 2007, 1:13 PM
Hello,

I want to put a data of a store into in a part of my page normaly, like a simple text.
I try with a disabled textField and it's work fine.

So i would like to change the CSS of the textField (with config option "disableClass"), but it don't work.

For test, i just set a CSS like this :
.myTextField {
color:black;
a background ...
}


Best regards.

efege
14 Nov 2007, 1:31 PM
Did you use disableClass (wrong name) or disabledClass (correct name)?

pbaccari
14 Nov 2007, 1:43 PM
I use "disableClass", like it's writen in doc :
http://extjs.com/deploy/ext/docs/output/Ext.form.TextField.html#config-disableClass

Is there an error in doc ?

efege
14 Nov 2007, 1:50 PM
Sorry, I was checking the Ext 2.0 docs, where the property is called disabledClass. :">

Could you please post just the relevant portion of your code?

efege
14 Nov 2007, 1:53 PM
Well, yes, it is a documentation bug. Check the source code, the property is in fact called disabledClass in Ext 1.1.1 too:

http://extjs.com/deploy/ext/docs/output/Component.jss.html

pbaccari
15 Nov 2007, 12:35 AM
Hello,

It's OK : with "disabledClass", it's work fine.

Thanks.
Best regards.