PDA

View Full Version : I want an image after the text field



gvsinghal
4 Jul 2011, 7:30 AM
Can anyone suggest me, how can I set an image after the text filed. I am trying with the following code but image (combobox) is not changed.

JS Code:

xtype:
'trigger',
width: 96,
id: 'customer number'

CSS Code:
.x-form-field-wrap.trigger{background-image:url(../images/cats/picklist.jpg);cursor:pointer;}

Thanks in an advance

skirtle
5 Jul 2011, 3:11 PM
Have you tried the triggerClass or triggerConfig config option?

If you're having trouble getting CSS rules to take effect I suggest you use Firebug or the Chrome Developer Tools to inspect the elements and trace the CSS styles. It should tell you which styles are applicable to each element and which ones take precedence.

gvsinghal
7 Jul 2011, 8:43 PM
Thanks for your suggestion skirtle. Now it's working fine after using the triggerClass.