4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5 <title>The source code</title>
6 <link href="../prettify/prettify.css" type="text/css" rel="stylesheet" />
7 <script type="text/javascript" src="../prettify/prettify.js"></script>
8 <style type="text/css">
9 .highlight { display: block; background-color: #ddd; }
11 <script type="text/javascript">
12 function highlight() {
13 document.getElementById(location.hash.replace(/#/, "")).className = "highlight";
17 <body onload="prettyPrint(); highlight();">
18 <pre class="prettyprint lang-js"><span id='Ext-core-Element'>/**
19 </span> * @class Ext.core.Element
21 Ext.core.Element.addMethods({
22 <span id='Ext-core-Element-method-initDD'> /**
23 </span> * Initializes a {@link Ext.dd.DD} drag drop object for this element.
24 * @param {String} group The group the DD object is member of
25 * @param {Object} config The DD config object
26 * @param {Object} overrides An object containing methods to override/implement on the DD object
27 * @return {Ext.dd.DD} The DD object
29 initDD : function(group, config, overrides){
30 var dd = new Ext.dd.DD(Ext.id(this.dom), group, config);
31 return Ext.apply(dd, overrides);
34 <span id='Ext-core-Element-method-initDDProxy'> /**
35 </span> * Initializes a {@link Ext.dd.DDProxy} object for this element.
36 * @param {String} group The group the DDProxy object is member of
37 * @param {Object} config The DDProxy config object
38 * @param {Object} overrides An object containing methods to override/implement on the DDProxy object
39 * @return {Ext.dd.DDProxy} The DDProxy object
41 initDDProxy : function(group, config, overrides){
42 var dd = new Ext.dd.DDProxy(Ext.id(this.dom), group, config);
43 return Ext.apply(dd, overrides);
46 <span id='Ext-core-Element-method-initDDTarget'> /**
47 </span> * Initializes a {@link Ext.dd.DDTarget} object for this element.
48 * @param {String} group The group the DDTarget object is member of
49 * @param {Object} config The DDTarget config object
50 * @param {Object} overrides An object containing methods to override/implement on the DDTarget object
51 * @return {Ext.dd.DDTarget} The DDTarget object
53 initDDTarget : function(group, config, overrides){
54 var dd = new Ext.dd.DDTarget(Ext.id(this.dom), group, config);
55 return Ext.apply(dd, overrides);