Element.dd.html 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>The source code</title>
  6. <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
  7. <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
  8. <style type="text/css">
  9. .highlight { display: block; background-color: #ddd; }
  10. </style>
  11. <script type="text/javascript">
  12. function highlight() {
  13. document.getElementById(location.hash.replace(/#/, "")).className = "highlight";
  14. }
  15. </script>
  16. </head>
  17. <body onload="prettyPrint(); highlight();">
  18. <pre class="prettyprint lang-js"><span id='Ext-dom-Element'>/**
  19. </span> * @class Ext.dom.Element
  20. */
  21. Ext.dom.Element.override({
  22. <span id='Ext-dom-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
  28. */
  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);
  32. },
  33. <span id='Ext-dom-Element-method-initDDProxy'> /**
  34. </span> * Initializes a {@link Ext.dd.DDProxy} object for this element.
  35. * @param {String} group The group the DDProxy object is member of
  36. * @param {Object} config The DDProxy config object
  37. * @param {Object} overrides An object containing methods to override/implement on the DDProxy object
  38. * @return {Ext.dd.DDProxy} The DDProxy object
  39. */
  40. initDDProxy : function(group, config, overrides){
  41. var dd = new Ext.dd.DDProxy(Ext.id(this.dom), group, config);
  42. return Ext.apply(dd, overrides);
  43. },
  44. <span id='Ext-dom-Element-method-initDDTarget'> /**
  45. </span> * Initializes a {@link Ext.dd.DDTarget} object for this element.
  46. * @param {String} group The group the DDTarget object is member of
  47. * @param {Object} config The DDTarget config object
  48. * @param {Object} overrides An object containing methods to override/implement on the DDTarget object
  49. * @return {Ext.dd.DDTarget} The DDTarget object
  50. */
  51. initDDTarget : function(group, config, overrides){
  52. var dd = new Ext.dd.DDTarget(Ext.id(this.dom), group, config);
  53. return Ext.apply(dd, overrides);
  54. }
  55. });
  56. </pre>
  57. </body>
  58. </html>