It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming JavaScript Forum

How to pass ExtJS class object ref to button 'click' event?

How to pass ExtJS class object ref to button 'click' event?

Postby rohanchandane on Thu Feb 03, 2011 11:38 am

How to pass ExtJS Class object ref to click event?

lets say I have a 'MyFormClass' in which I have a 'Save' button.

on click on button, I want to pass 'MyFormClass' class's object ref.

eg.

Code: Select all
saveButton.on('click',function(){
    console.log(this);
});

I know this doesn't work, but I want something like this.

Rohan
rohanchandane
 
Posts: 1
Joined: Thu Feb 03, 2011 11:35 am

Who is online

Users browsing this forum: Google Adsense [Bot] and 7 guests