Results 1 to 3 of 3

Thread: I want an image after the text field

  1. #1
    Sencha User
    Join Date
    Mar 2011
    Location
    Gurgaon, India
    Posts
    8

    Default I want an image after the text field

    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

  2. #2
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,791

    Default

    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.

  3. #3
    Sencha User
    Join Date
    Mar 2011
    Location
    Gurgaon, India
    Posts
    8

    Default

    Thanks for your suggestion skirtle. Now it's working fine after using the triggerClass.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •