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