3 <title>The source code</title>
\r
4 <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
\r
5 <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
\r
7 <body onload="prettyPrint();">
\r
8 <pre class="prettyprint lang-js">/**
\r
11 Ext.Element.addMethods({
\r
12 <div id="method-Ext.Element-initDD"></div>/**
\r
13 * Initializes a {@link Ext.dd.DD} drag drop object for this element.
\r
14 * @param {String} group The group the DD object is member of
\r
15 * @param {Object} config The DD config object
\r
16 * @param {Object} overrides An object containing methods to override/implement on the DD object
\r
17 * @return {Ext.dd.DD} The DD object
\r
19 initDD : function(group, config, overrides){
\r
20 var dd = new Ext.dd.DD(Ext.id(this.dom), group, config);
\r
21 return Ext.apply(dd, overrides);
\r
24 <div id="method-Ext.Element-initDDProxy"></div>/**
\r
25 * Initializes a {@link Ext.dd.DDProxy} object for this element.
\r
26 * @param {String} group The group the DDProxy object is member of
\r
27 * @param {Object} config The DDProxy config object
\r
28 * @param {Object} overrides An object containing methods to override/implement on the DDProxy object
\r
29 * @return {Ext.dd.DDProxy} The DDProxy object
\r
31 initDDProxy : function(group, config, overrides){
\r
32 var dd = new Ext.dd.DDProxy(Ext.id(this.dom), group, config);
\r
33 return Ext.apply(dd, overrides);
\r
36 <div id="method-Ext.Element-initDDTarget"></div>/**
\r
37 * Initializes a {@link Ext.dd.DDTarget} object for this element.
\r
38 * @param {String} group The group the DDTarget object is member of
\r
39 * @param {Object} config The DDTarget config object
\r
40 * @param {Object} overrides An object containing methods to override/implement on the DDTarget object
\r
41 * @return {Ext.dd.DDTarget} The DDTarget object
\r
43 initDDTarget : function(group, config, overrides){
\r
44 var dd = new Ext.dd.DDTarget(Ext.id(this.dom), group, config);
\r
45 return Ext.apply(dd, overrides);
\r