Results 1 to 3 of 3

Thread: Handler for when the window body is clicked

  1. #1
    Sencha User
    Join Date
    Mar 2009
    Posts
    356
    Answers
    1
    Vote Rating
    0
      0  

    Exclamation Handler for when the window body is clicked

    how to hide the panel when clicked
    itry

    handleClick: function (event) {
    this.fireEvent('click', this);panel.hide();
    },

    not work
    tankyou
    my ext js site
    http://www.itoto4.com/

  2. #2
    Sencha User
    Join Date
    Mar 2009
    Posts
    356
    Answers
    1
    Vote Rating
    0
      0  

    Default

    ok its work
    listeners: {
    render: function(c){
    c.getEl().on({
    click: function(el){
    panel.hide();
    },
    scope: c
    });
    }

    },
    my ext js site
    http://www.itoto4.com/

  3. #3
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,791
    Answers
    585
    Vote Rating
    394
      0  

    Default

    Please use [CODE] tags when posting code.

    Maybe this is a little simpler?

    Code:
    listeners: {
        el: {
            click: function() {
                panel.hide();
            }
        }
    }

Posting Permissions

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