PDA

View Full Version : event callback parameters



ken860807
22 Jan 2012, 3:18 AM
Hi, I wanna know, the following code....

XXXX.on('YYYY', function(ZZZZ) {
// Do someing...
});

according I change YYYY to (click, change, keydown, etc), ZZZZ will have different parameters..

I wanna know these different parameters, Where can get ans in API Documents??


Who can help me??....
Thank you.....~~

flanders
22 Jan 2012, 3:27 AM
You just navigate to the XXXX's class, then you can find all events by hovering 'Events' in the grey bar on top.

For example if XXXX is an Ext.grid.Panel, there are 77. As indicated next to the text

(http://docs.sencha.com/ext-js/4-0/#!/api/Ext.grid.Panel-event-add)