3 * Copyright(c) 2006-2010 Sencha Inc.
5 * http://www.sencha.com/license
10 Ext.Element.addMethods({
12 * Initializes a {@link Ext.dd.DD} drag drop object for this element.
13 * @param {String} group The group the DD object is member of
14 * @param {Object} config The DD config object
15 * @param {Object} overrides An object containing methods to override/implement on the DD object
16 * @return {Ext.dd.DD} The DD object
18 initDD : function(group, config, overrides){
19 var dd = new Ext.dd.DD(Ext.id(this.dom), group, config);
20 return Ext.apply(dd, overrides);
24 * Initializes a {@link Ext.dd.DDProxy} object for this element.
25 * @param {String} group The group the DDProxy object is member of
26 * @param {Object} config The DDProxy config object
27 * @param {Object} overrides An object containing methods to override/implement on the DDProxy object
28 * @return {Ext.dd.DDProxy} The DDProxy object
30 initDDProxy : function(group, config, overrides){
31 var dd = new Ext.dd.DDProxy(Ext.id(this.dom), group, config);
32 return Ext.apply(dd, overrides);
36 * Initializes a {@link Ext.dd.DDTarget} object for this element.
37 * @param {String} group The group the DDTarget object is member of
38 * @param {Object} config The DDTarget config object
39 * @param {Object} overrides An object containing methods to override/implement on the DDTarget object
40 * @return {Ext.dd.DDTarget} The DDTarget object
42 initDDTarget : function(group, config, overrides){
43 var dd = new Ext.dd.DDTarget(Ext.id(this.dom), group, config);
44 return Ext.apply(dd, overrides);