duallistbox.html 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <!DOCTYPE html>
  2. <html lang="zh">
  3. <head>
  4. <th:block th:include="include :: header('左右互选组件')" />
  5. <th:block th:include="include :: bootstrap-duallistbox-css" />
  6. </head>
  7. <body class="gray-bg">
  8. <div class="wrapper wrapper-content animated fadeInRight">
  9. <div class="row">
  10. <div class="col-lg-12">
  11. <div class="ibox">
  12. <div class="ibox-title">
  13. <h5>双重列表框 <small>https://github.com/istvan-ujjmeszaros/bootstrap-duallistbox</small></h5>
  14. </div>
  15. <div class="ibox-content">
  16. <p>
  17. Bootstrap Dual Listbox是针对Twitter Bootstrap进行了优化的响应式双列表框。它适用于所有现代浏览器和触摸设备。
  18. </p>
  19. <form id="form" action="#" class="wizard-big">
  20. <select class="form-control dual_select" multiple>
  21. <option value="1">若依1</option>
  22. <option value="2">若依2</option>
  23. <option value="3">若依3</option>
  24. <option selected value="4">若依4</option>
  25. <option selected value="5">若依5</option>
  26. <option value="6">若依6</option>
  27. <option value="7">若依7</option>
  28. <option value="8">若依8</option>
  29. <option value="9">若依9</option>
  30. <option value="10">若依10</option>
  31. <option value="11">若依11</option>
  32. <option value="12">若依12</option>
  33. </select>
  34. </form>
  35. <hr>
  36. <div class="form-group">
  37. <label class="font-noraml">相关参数详细信息</label>
  38. <div><a href="http://doc.ruoyi.vip/ruoyi/document/zjwd.html#bootstrap-duallistbox" target="_blank">http://doc.ruoyi.vip/ruoyi/document/zjwd.html#bootstrap-duallistbox</a></div>
  39. </div>
  40. </div>
  41. </div>
  42. </div>
  43. </div>
  44. </div>
  45. <th:block th:include="include :: footer" />
  46. <th:block th:include="include :: bootstrap-duallistbox-js" />
  47. <script type="text/javascript">
  48. $('.dual_select').bootstrapDualListbox({
  49. nonSelectedListLabel: '未有用户',
  50. selectedListLabel: '已有用户',
  51. preserveSelectionOnMove: 'moved',
  52. moveOnSelect: false, // 出现一个剪头,表示可以一次选择一个
  53. filterTextClear: '展示所有',
  54. moveSelectedLabel: "添加",
  55. moveAllLabel: '添加所有',
  56. removeSelectedLabel: "移除",
  57. removeAllLabel: '移除所有',
  58. infoText: '共{0}个',
  59. showFilterInputs: false, // 是否带搜索
  60. selectorMinimalHeight: 160
  61. });
  62. </script>
  63. </body>
  64. </html>