Hybrid View

  1. #1
    Sencha User
    Join Date
    Mar 2011
    Posts
    63
    Vote Rating
    0
    jorgeluislay is an unknown quantity at this point

      0  

    Default 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:

    PHP Code:
    .myStatusFieldIcon {
        
    background-imageurl(../img/shared/icons/icon.png)  no-repeat scroll 0 2px;

    in my ExtJs code:


    PHP Code:
               xtype'textfield',
                        
    cls'myStatusFieldGreen'
    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 ?

  2. #2
    Sencha User
    Join Date
    Mar 2011
    Posts
    63
    Vote Rating
    0
    jorgeluislay is an unknown quantity at this point

      0  

    Default


    PHP Code:
                                Ext.getCmp('searchField').removeClass('myStatusFieldGreen');
                                
    Ext.getCmp('searchField').addClass('myStatusFieldRed'); 
    It works .. Resolved !