Results 1 to 4 of 4

Thread: how to send params with "on"

  1. #1
    Ext User Grimsk's Avatar
    Join Date
    Jul 2007
    Location
    Saint-Georges, Canada
    Posts
    101

    Default how to send params with "on"

    is it possible to send params with this line :
    Code:
    senderFunction: function(){
     var myParamsToSend;
     Ext.get( 'sliderNext' ).on( 'click', this.next );
    ...
    next: function(){
    ...
    }

  2. #2

  3. #3
    Ext Premium Member BernardChhun's Avatar
    Join Date
    Mar 2007
    Location
    Quebec, Canada
    Posts
    831

    Default

    Code:
    Ext.get( 'sliderNext' ).on( 'click', this.next.createDelegate(this, [params1, params2]) );

  4. #4
    Ext User Grimsk's Avatar
    Join Date
    Jul 2007
    Location
    Saint-Georges, Canada
    Posts
    101

    Default

    thnks berny and the beast !

Posting Permissions

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