source: trunk/web/addons/job_monarch/lib/extjs-30/src/core/Element.dd.js @ 625

Last change on this file since 625 was 625, checked in by ramonb, 15 years ago

lib/extjs-30:

  • new ExtJS 3.0
File size: 1.8 KB
Line 
1/*!
2 * Ext JS Library 3.0.0
3 * Copyright(c) 2006-2009 Ext JS, LLC
4 * licensing@extjs.com
5 * http://www.extjs.com/license
6 */
7/**
8 * @class Ext.Element
9 */
10Ext.Element.addMethods({
11    /**
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
17     */
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);
21    },
22
23    /**
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
29     */
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);
33    },
34
35    /**
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
41     */
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);
45    }
46});
Note: See TracBrowser for help on using the repository browser.