Results 1 to 3 of 3

Thread: TriggerFiled click not working as xtype?

  1. #1

    Default TriggerFiled click not working as xtype?

    What am I doing wrong here? onTriggerClick is not firing...

    Code:
                        { xtype: 'trigger', itemId: 'SearchTextField', x: 5, y: 5, width: 200,
                            listeners: {
                                onTriggerClick: function(e) {
                                    alert("test");
                                },
                                scope: this
                            }
                        }

  2. #2
    Sencha User
    Join Date
    Mar 2008
    Location
    Brazil
    Posts
    76

    Default

    onTriggerClick isnt an event...Its an abstract method that you need to implement:

    Code:
    { 
       xtype            : 'trigger', 
       itemId           : 'SearchTextField', 
       x                  : 5, 
       y                  : 5, 
       width            : 200,
       onTriggerClick : function(e) {
           alert("test");
       }
    }
    Provides a convenient wrapper for TextFields that adds a clickable trigger button (looks like a combobox by default). The trigger has no default action, so you must assign a function to implement the trigger click handler by overriding onTriggerClick

  3. #3

    Default

    Thanks, that was it!

Similar Threads

  1. xtype:checkbox not working
    By waken in forum Ext 3.x: Help & Discussion
    Replies: 3
    Last Post: 10 Jun 2010, 3:23 PM
  2. [solved] xtype: portal - not working drag&drop panels
    By RobertT in forum Ext 2.x: Help & Discussion
    Replies: 7
    Last Post: 23 Sep 2009, 4:39 AM
  3. Statusbar-advanced not working with FormPanel xtype
    By Joyfulbob in forum Ext 2.x: Help & Discussion
    Replies: 8
    Last Post: 9 Mar 2009, 8:51 AM
  4. Livegrid is not working while using as xtype component
    By mahe4us in forum Ext 2.x: Help & Discussion
    Replies: 4
    Last Post: 7 Jan 2009, 1:11 AM
  5. Simple File Upload Example Stop Working When Using xtype
    By fangzhouxing in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 28 May 2008, 3:28 AM

Posting Permissions

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