Results 1 to 3 of 3

Thread: Add icon to textfield like useClearIcon

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User
    Join Date
    Oct 2010
    Vote Rating

    Default Answered: Add icon to textfield like useClearIcon

    Can I add a button or icon to an inputfield to fire an Event ? Or can I override the useClearIcon function and change the icon ?

    I load a form to show some information and want to add for special textfields a more button. My textfield is read only.

    for example

    { xtype: 'textfield',
      id: 'resultcard_textfield_etd_atd_dp',
      name : 'etd_atd_dp',
      label: 'ETD*-ATD',
      listeners: {
               afterrender: function(ele) {
                   ele.fieldEl.dom.readOnly = true;        
                   ele.labelEl.update('<span class="font_second_color">ETD*-</span><span class="font_first_color">ATD</span>');                        }
    Has some one a great solution for this ?

  2. It's all in the render tpl... look at the source for the text field

Posting Permissions

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