3 <title>The source code</title>
4 <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
5 <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
7 <body onload="prettyPrint();">
8 <pre class="prettyprint lang-js">/*!
10 * Copyright(c) 2006-2009 Ext JS, LLC
12 * http://www.extjs.com/license
15 * @class Ext.Element
\r
17 Ext.Element.addMethods({
\r
18 <div id="method-Ext.Element-initDD"></div>/**
\r
19 * Initializes a {@link Ext.dd.DD} drag drop object for this element.
\r
20 * @param {String} group The group the DD object is member of
\r
21 * @param {Object} config The DD config object
\r
22 * @param {Object} overrides An object containing methods to override/implement on the DD object
\r
23 * @return {Ext.dd.DD} The DD object
\r
25 initDD : function(group, config, overrides){
\r
26 var dd = new Ext.dd.DD(Ext.id(this.dom), group, config);
\r
27 return Ext.apply(dd, overrides);
\r
30 <div id="method-Ext.Element-initDDProxy"></div>/**
\r
31 * Initializes a {@link Ext.dd.DDProxy} object for this element.
\r
32 * @param {String} group The group the DDProxy object is member of
\r
33 * @param {Object} config The DDProxy config object
\r
34 * @param {Object} overrides An object containing methods to override/implement on the DDProxy object
\r
35 * @return {Ext.dd.DDProxy} The DDProxy object
\r
37 initDDProxy : function(group, config, overrides){
\r
38 var dd = new Ext.dd.DDProxy(Ext.id(this.dom), group, config);
\r
39 return Ext.apply(dd, overrides);
\r
42 <div id="method-Ext.Element-initDDTarget"></div>/**
\r
43 * Initializes a {@link Ext.dd.DDTarget} object for this element.
\r
44 * @param {String} group The group the DDTarget object is member of
\r
45 * @param {Object} config The DDTarget config object
\r
46 * @param {Object} overrides An object containing methods to override/implement on the DDTarget object
\r
47 * @return {Ext.dd.DDTarget} The DDTarget object
\r
49 initDDTarget : function(group, config, overrides){
\r
50 var dd = new Ext.dd.DDTarget(Ext.id(this.dom), group, config);
\r
51 return Ext.apply(dd, overrides);
\r