<html>\r
<head>\r
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> \r
<title>The source code</title>\r
<link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />\r
<script type="text/javascript" src="../resources/prettify/prettify.js"></script>\r
* by using the event's {@link Ext.EventObject#getTarget getTarget} method to identify a node based on a\r
* {@link Ext.DomQuery} selector. For example, to make the nodes of a DataView draggable, use the following\r
* technique. Knowledge of the use of the DataView is required:</p><pre><code>\r
-myDataView.on('render', function() {\r
- myDataView.dragZone = new Ext.dd.DragZone(myDataView.getEl(), {\r
+myDataView.on('render', function(v) {\r
+ myDataView.dragZone = new Ext.dd.DragZone(v.getEl(), {\r
\r
// On receipt of a mousedown event, see if it is within a DataView node.\r
// Return a drag data object if so.\r
\r
// Use the DataView's own itemSelector (a mandatory property) to\r
// test if the mousedown is within one of the DataView's nodes.\r
- var sourceEl = e.getTarget(myDataView.itemSelector, 10);\r
+ var sourceEl = e.getTarget(v.itemSelector, 10);\r
\r
// If the mousedown is within a DataView node, clone the node to produce\r
// a ddel element for use by the drag proxy. Also add application data\r
ddel: d,\r
sourceEl: sourceEl,\r
repairXY: Ext.fly(sourceEl).getXY(),\r
- sourceStore: myDataView.store,\r
- draggedRecord: v.getRecord(sourceEl)\r
+ sourceStore: v.store,\r
+ draggedRecord: v.{@link Ext.DataView#getRecord getRecord}(sourceEl)\r
}\r
}\r
},\r