Created
July 9, 2013 19:58
-
-
Save missett/5960723 to your computer and use it in GitHub Desktop.
Example of a custom event in ExtJS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ext.create('Ext.grid.Panel', { | |
columns: [ | |
{ | |
xtype: 'actioncolumn', | |
isDisabled: function(value) { | |
return true; | |
}, | |
handler: function() { | |
this.fireEvent('customevent', arg1, arg2, ...); | |
} | |
} | |
] | |
}); | |
Ext.create('Ext.app.Controller', { | |
init: function() { | |
this.control({ | |
'actioncolumn' : { | |
customevent: function(arg1, arg2, ...) { | |
//Event Handler Function | |
} | |
} | |
}); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment