How can I use Ext.tree.ViewDDPlugin events?
I have a TreePanel that uses DDPplugin, but I would like to know how to listen for the drop event.
This is what my code looks like:
var monPretree = Ext.create('Ext.tree.Panel',{ id : 'treepanel', title : 'TITRE', //width : 800, //height : 600, width : 500, enableDD: true, useArrows : true, viewConfig : { plugins : { ptype: 'treeviewdragdrop', appendOnly: true, listeners: { drop: function (node, data, overModel, dropPosition) { alert('CHANGE'); }, notifyDrop: function (dragSource, event, data) { var nodeId = data.node.id; alert(nodeId); }, notifyOver: function (dragSource, event, data) { alert('over'); } } } }, singleExpand : false, store : monPrestore, rootVisible : false,
I would like to enable drop events, for example, but my code is not working
Thanks:)
Mepps source share