X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/25ef3491bd9ae007ff1fc2b0d7943e6eaaccf775..10a866c12701c0a0afd0ac85dcdcf32a421514ac:/docs/source/DragZone.html?ds=inline diff --git a/docs/source/DragZone.html b/docs/source/DragZone.html index 79801a20..b40153ec 100644 --- a/docs/source/DragZone.html +++ b/docs/source/DragZone.html @@ -1,17 +1,12 @@ - -
-/*! - * Ext JS Library 3.0.3 - * Copyright(c) 2006-2009 Ext JS, LLC - * licensing@extjs.com - * http://www.extjs.com/license - */ -/** + + + +The source code + + + + +/** * @class Ext.dd.DragZone * @extends Ext.dd.DragSource *+ \ No newline at end of fileThis class provides a container DD instance that allows dragging of multiple child source nodes.
@@ -28,8 +23,8 @@ * by using the event's {@link Ext.EventObject#getTarget getTarget} method to identify a node based on a * {@link Ext.DomQuery} selector. For example, to make the nodes of a DataView draggable, use the following * technique. Knowledge of the use of the DataView is required:- +});-myDataView.on('render', function() { - myDataView.dragZone = new Ext.dd.DragZone(myDataView.getEl(), { +myDataView.on('render', function(v) { + myDataView.dragZone = new Ext.dd.DragZone(v.getEl(), { // On receipt of a mousedown event, see if it is within a DataView node. // Return a drag data object if so. @@ -37,7 +32,7 @@ myDataView.on('render', function() { // Use the DataView's own itemSelector (a mandatory property) to // test if the mousedown is within one of the DataView's nodes. - var sourceEl = e.getTarget(myDataView.itemSelector, 10); + var sourceEl = e.getTarget(v.itemSelector, 10); // If the mousedown is within a DataView node, clone the node to produce // a ddel element for use by the drag proxy. Also add application data @@ -49,8 +44,8 @@ myDataView.on('render', function() { ddel: d, sourceEl: sourceEl, repairXY: Ext.fly(sourceEl).getXY(), - sourceStore: myDataView.store, - draggedRecord: v.getRecord(sourceEl) + sourceStore: v.store, + draggedRecord: v.{@link Ext.DataView#getRecord getRecord}(sourceEl) } } }, @@ -137,6 +132,6 @@ Ext.extend(Ext.dd.DragZone, Ext.dd.DragSource, { getRepairXY : function(e){ return Ext.Element.fly(this.dragData.ddel).getXY(); } -});