/*
|
This file is part of Ext JS 4.2
|
|
Copyright (c) 2011-2013 Sencha Inc
|
|
Contact: http://www.sencha.com/contact
|
|
GNU General Public License Usage
|
This file may be used under the terms of the GNU General Public License version 3.0 as
|
published by the Free Software Foundation and appearing in the file LICENSE included in the
|
packaging of this file.
|
|
Please review the following information to ensure the GNU General Public License version 3.0
|
requirements will be met: http://www.gnu.org/copyleft/gpl.html.
|
|
If you are unsure which license is appropriate for your use, please contact the sales department
|
at http://www.sencha.com/contact.
|
|
Build date: 2013-05-16 14:36:50 (f9be68accb407158ba2b1be2c226a6ce1f649314)
|
*/
|
// @tag dom,core
|
/**
|
*/
|
Ext.define('Ext.dom.Element_dd', {
|
override: 'Ext.dom.Element',
|
|
/**
|
* Initializes a {@link Ext.dd.DD} drag drop object for this element.
|
* @param {String} group The group the DD object is member of
|
* @param {Object} config The DD config object
|
* @param {Object} overrides An object containing methods to override/implement on the DD object
|
* @return {Ext.dd.DD} The DD object
|
*/
|
initDD : function(group, config, overrides){
|
var dd = new Ext.dd.DD(Ext.id(this.dom), group, config);
|
return Ext.apply(dd, overrides);
|
},
|
|
/**
|
* Initializes a {@link Ext.dd.DDProxy} object for this element.
|
* @param {String} group The group the DDProxy object is member of
|
* @param {Object} config The DDProxy config object
|
* @param {Object} overrides An object containing methods to override/implement on the DDProxy object
|
* @return {Ext.dd.DDProxy} The DDProxy object
|
*/
|
initDDProxy : function(group, config, overrides){
|
var dd = new Ext.dd.DDProxy(Ext.id(this.dom), group, config);
|
return Ext.apply(dd, overrides);
|
},
|
|
/**
|
* Initializes a {@link Ext.dd.DDTarget} object for this element.
|
* @param {String} group The group the DDTarget object is member of
|
* @param {Object} config The DDTarget config object
|
* @param {Object} overrides An object containing methods to override/implement on the DDTarget object
|
* @return {Ext.dd.DDTarget} The DDTarget object
|
*/
|
initDDTarget : function(group, config, overrides){
|
var dd = new Ext.dd.DDTarget(Ext.id(this.dom), group, config);
|
return Ext.apply(dd, overrides);
|
}
|
});
|