PDA

View Full Version : Combobox disabled



same66
21 Jan 2011, 2:10 AM
Hi,

I'm using a combobox and I disable this component.
But, I want to set a different color when this component is disabled.

When I get my combobox disabled, the color is gray and the opacity is 50%.

Is it possible to change those values ?

I want my combo with red color and 80% opacity.

How to do that please ?

Thanks :)

21 Jan 2011, 5:15 AM
that is a standard for UIs. Disabled is light gray. Why would you want to change that? Why deviate from the standard?

same66
21 Jan 2011, 5:46 AM
Because my spec say : "disabled combobox are RED"
In real, I have to do colored my disabled combobox in red because my client need that.

Do you can help me please ?
It is possible to rewrite the class in a css file ?

I do a class and it's work fine for Firefox but for IE8, no effect. I don't understand why the behaviour is different :O

Thanks !

21 Jan 2011, 5:48 AM
Because my spec say : "disabled combobox are RED"
In real, I have to do colored my disabled combobox in red because my client need that.

Do you can help me please ?
It is possible to rewrite the class in a css file ?

I do a class and it's work fine for Firefox but for IE8, no effect. I don't understand why the behaviour is different :O

Thanks !

Yes you can override the x-field-disabled. To be honest, whoever is writing your spec has no clue on how UIs should look.

same66
21 Jan 2011, 7:06 AM
I think this application is special. The need are specific.
Thank for your reply, and I have another question...

x-field-disabled ? I don't find this class in the extjs css file :O

21 Jan 2011, 7:14 AM
x-item-disabled --- sorry