Skip to content

Instantly share code, notes, and snippets.

@missett
Created July 9, 2013 19:58
Show Gist options
  • Save missett/5960723 to your computer and use it in GitHub Desktop.
Save missett/5960723 to your computer and use it in GitHub Desktop.
Example of a custom event in ExtJS
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