source:
trunk/workshop-routing-foss4g/web/ext/src/core/Element.dd.js
@
81
Revision 76, 1.7 KB checked in by djay, 13 years ago (diff) | |
---|---|
|
Line | |
---|---|
1 | /*! |
2 | * Ext JS Library 3.4.0 |
3 | * Copyright(c) 2006-2011 Sencha Inc. |
4 | * licensing@sencha.com |
5 | * http://www.sencha.com/license |
6 | */ |
7 | /** |
8 | * @class Ext.Element |
9 | */ |
10 | Ext.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.