Saturday, 15 March 2014

javascript - drag and drop for panel extjs -



javascript - drag and drop for panel extjs -

i'm using extjs drag working correctly drop not working here code

draggable : { insertproxy : false, moveondrag: true, ondrag : function(e) { var pel = this.proxy.getel(); this.x = pel.getleft(true); this.y = pel.gettop(true); var s = this.panel.getel().shadow; if (s) { s.realign(this.x, this.y, pel.getwidth(), pel .getheight()); } }, enddrag: function(e) { ext.panel.dd.prototype.enddrag.apply(this, arguments); console.log('dragend'); }, },

hint : i'm using generic panel that's mean same panel content generated many times :)

javascript extjs panel

No comments:

Post a Comment