Hybrid View
-
10 Nov 2012 4:47 AM #1
Fieldtext background image css
Fieldtext background image css
Hi!
I just want to put an image on the textfield input box but i dont know how to do this. What i got till now is this:
in my ExtJs code:PHP Code:.myStatusFieldIcon {
background-image: url(../img/shared/icons/icon.png) no-repeat scroll 0 2px;
}
But i see a lot of icons.png in the box. I just want to have one icon.png on the right side of the box. Some ideas ?PHP Code:xtype: 'textfield',
cls: 'myStatusFieldGreen',
-
10 Nov 2012 10:19 AM #2
It works .. Resolved !PHP Code:Ext.getCmp('searchField').removeClass('myStatusFieldGreen');
Ext.getCmp('searchField').addClass('myStatusFieldRed');


Reply With Quote