I'm trying to D-n-D items from View to another View or Panel.
All sources points to Ext.ux.DataView.Draggable. But it doesn't work for me.
Following code from Extjs docs fails:
Ext.create('Ext.view.View', {
mixins: {
draggable: 'Ext.ux.DataView.Draggable'
},
initComponent: function() {
this.mixins.draggable.init(this, {
ddConfig: {
ddGroup: 'someGroup'
}
});
this.callParent(arguments);
}
});
this.mixins.draggable set as undefined. So init method not found.
Error logs:
Uncaught TypeError: Object Ext.ux.DataView.Draggable has no method 'init'
Ext.create.initComponent fiddle.jshell.net:28
Ext.define.constructor ext-all.js:15
b.callParent ext-all.js:15
Ext.define.constructor ext-all.js:15
Ext.Class.m ext-all.js:15
(anonymous function)
Ext.ClassManager.instantiate ext-all.js:15
(anonymous function) ext-all.js:15
window.onload
Is there any simple way to get it worked ?
Edit1: Here you can try it ;).