You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
1.1 KiB

2 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. <html>
  2. <head>
  3. <title>Array Grid DropZone Example</title>
  4. <link rel="stylesheet" type="text/css" href="../../resources/css/ext-all.css" />
  5. <!-- GC -->
  6. <!-- LIBS -->
  7. <script type="text/javascript" src="../../adapter/ext/ext-base.js"></script>
  8. <!-- ENDLIBS -->
  9. <script type="text/javascript" src="../../ext-all-debug.js"></script>
  10. <script type="text/javascript" src="field-to-grid-dd.js"></script>
  11. <!-- Common Styles for the examples -->
  12. <link rel="stylesheet" type="text/css" href="../shared/examples.css" />
  13. <style type="text/css">
  14. .x-drop-target-active {
  15. background-color: #D88;
  16. }
  17. </style>
  18. </head>
  19. <body>
  20. <h1>Using a GridPanel as a DropZone managing each grid cell as a target</h1>
  21. <p>This example assumes prior knowledge of using a GridPanel.</p>
  22. <p>This illustrates how a DragZone can manage an arbitrary number of drag sources, and
  23. how a DropZone can manage an arbitrary number of targets.</p>
  24. <p>Note that the js is not minified so it is readable. See <a href="field-to-grid-dd.js">field-to-grid-dd.js</a>.</p>
  25. <div id="grid-example"></div>
  26. </body>
  27. </html>