PDA

View Full Version : How to attach a extjs object function as listener to hyper link button



valfumble
18 Jan 2011, 11:10 AM
I managed to get hyperlink buttons working using box and autoel, but now I need to get the extjs function called on the click event instead of hyperlink.


Any pointer will greatly help....

18 Jan 2011, 12:22 PM
I managed to get hyperlink buttons working using box and autoel, but now I need to get the extjs function called on the click event instead of hyperlink.


Any pointer will greatly help....


You can attach a render handler on that box, which will use this.mon('click', yourElRef, this.onSomeElClick, this);

Be sure to cancel the event or use preventDefault in your handler.