It works!
I made a small change in the constructor and now it works fine :
Code:
constructor: function(config) {
var me=this;
this.editAction = config.editAction;
this.copyAction = config.copyAction;
this.editFunction = config.editFunction;
this.editIndex = config.editIndex;
this.copyFunction = config.copyFunction;
this.copyIndex = config.copyIndex;
var items = this.getActions();
config.items = items;
//me.setConfig(config);
//me.callParent(arguments);
me.callParent([config]);
return me;
},
Thanks for all your usefull answers! Being new to extjs, it would have taken me ages to figure this out on my own.