I am trying to set up some event handlers within my controller to handle the beforedrop and drop events of the treeviewdragdrop plugin. The plugin belongs to the treeview, which is a child of the treepanel. I have tried numerous ways to reference the treeviewdragdrop plugin component, without any success. How can I access the compoenet from the controller?
I’ve tried the follwing among others:
'#treepanelID > treeviewdragdrop':{drop:this.afunction}
This doesn’t work, what should I enter to reference the component and listen for the two afformentioend events.
You cannot access the plugin from the
Controller, component selector. You can only accessExt.Components. A plugin is not anExt.Componentand usually fire events on theExt.Componentthey add functionality to.treeviewdragdropis firing events on thetreeview. Try this: