multiselect-demo.html 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  5. <title>MultiSelect &amp; ItemSelector</title>
  6. <!-- ExtJS -->
  7. <link rel="stylesheet" type="text/css" href="../../resources/css/ext-all.css" />
  8. <script type="text/javascript" src="../../ext-all.js"></script>
  9. <!-- Shared -->
  10. <link rel="stylesheet" type="text/css" href="../shared/example.css" />
  11. <!-- Example -->
  12. <script type="text/javascript" src="multiselect-demo.js"></script>
  13. <link rel="stylesheet" type="text/css" href="../ux/css/ItemSelector.css" />
  14. <!-- GC -->
  15. </head>
  16. <body>
  17. <h1>MultiSelect &amp; ItemSelector</h1>
  18. <p>The js is not minified so it is readable. See <a href="multiselect-demo.js">multiselect-demo.js</a>.</p>
  19. <h2>MultiSelect</h2>
  20. <p>MultiSelect is a form field type that allows selection of one or more items from a list. The list is
  21. populated using a data Store. Items can be reordered via drag and drop if <code>ddReorder:true</code> is set.</p>
  22. <p>This example has <code>allowBlank:false</code> so a validation error will appear when the item's selections
  23. are cleared. Validations for <code>minSelections</code> and <code>maxSelections</code> can also be applied.</p>
  24. <div id="multiselect" class="demo-ct"></div>
  25. <h2>ItemSelector</h2>
  26. <p>ItemSelector is a specialized MultiSelect field that renders as a pair of MultiSelect field, one with
  27. available options and the other with selected options. A set of buttons in between allows items to be
  28. moved between the fields and reordered within the selection. Items can also be moved via drag and drop.
  29. All the same validations as MultiSelect are supported.</p>
  30. <div id="itemselector" class="demo-ct"></div>
  31. </body>
  32. </html>