PDA

View Full Version : Change color of emptyText in combobox



spor
25 Jan 2011, 3:10 AM
Is it possible to change the font color of emptyText? Anyway, I found emptyClass, (http://dev.sencha.com/deploy/dev/docs/source/TextField.html#cfg-Ext.form.TextField-emptyClass) so it should be tweakable there.

valititi
25 Jan 2011, 12:38 PM
if you want to change everywhere in your application, edit ext-all.css and change this :
.x-form-empty-field{color:gray;}
with whatever you need....

spor
25 Jan 2011, 1:16 PM
Yeah, I eventually figured it out. Thanks anyway, valititi :)

For the records, it is also possible to override the emptyClass config in the comboBox class with a different entry in the css file.