酒店预订平台
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

3 年前
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. # Getting Started
  2. ---
  3. ## Dependencies
  4. Requires jQuery v1.8.0+, Bootstrap’s dropdown.js component, and Bootstrap's CSS. If you're not already using Bootstrap in your project, a precompiled version of the minimum requirements can be downloaded [here](http://getbootstrap.com/customize/?id=7830063837006f6fc84f).
  5. ## CDNJS
  6. The folks at CDNJS host a copy of the library. The CDN is updated after the release is made public, which means there is a delay between the publishing of a release and its availability on the CDN, so keep that in mind. Just use these links:
  7. ```html
  8. <!-- Latest compiled and minified CSS -->
  9. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.11.2/css/bootstrap-select.min.css">
  10. <!-- Latest compiled and minified JavaScript -->
  11. <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.11.2/js/bootstrap-select.min.js"></script>
  12. <!-- (Optional) Latest compiled and minified JavaScript translation files -->
  13. <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.11.2/js/i18n/defaults-*.min.js"></script>
  14. ```
  15. ## Install with Bower
  16. You can also install bootstrap-select using [Bower](http://bower.io):
  17. ```elixir
  18. $ bower install bootstrap-select
  19. ```
  20. ## Install with npm
  21. You can also install bootstrap-select using [npm](https://www.npmjs.com/package/bootstrap-select):
  22. ```elixir
  23. $ npm install bootstrap-select
  24. ```
  25. ## Install with NuGet
  26. You can also install bootstrap-select using [NuGet](https://www.nuget.org/packages/bootstrap-select):
  27. ```elixir
  28. $ Install-Package bootstrap-select
  29. ```
  30. # Usage
  31. ---
  32. Create your `<select>` with the `.selectpicker` class. The data-api will automatically theme these elements.
  33. ```html
  34. <select class="selectpicker">
  35. <option>Mustard</option>
  36. <option>Ketchup</option>
  37. <option>Relish</option>
  38. </select>
  39. ```
  40. Options can be passed via data attributes or JavaScript.
  41. ```js
  42. $('.selectpicker').selectpicker({
  43. style: 'btn-info',
  44. size: 4
  45. });
  46. ```
  47. # Used by
  48. ---
  49. <div class="row logo-block">
  50. <div class="logo-container">
  51. <a href="https://snapappointments.com" target="_blank"><img src="img/logos/snapappointments.png" alt="SnapAppointments"></a>
  52. </div>
  53. <div class="logo-container">
  54. <a href="https://www.thermofisher.com" target="_blank"><img src="img/logos/thermofisher.png" alt="Thermo Fisher Scientific Inc."></a>
  55. </div>
  56. <div class="logo-container">
  57. <a href="https://www.membermeister.com" target="_blank"><img src="img/logos/membermeister.png" alt="membermeister"></a>
  58. </div>
  59. <div class="logo-container">
  60. <a href="https://solveforall.com" target="_blank"><img src="img/logos/solveforall.png" alt="Solve for All"></a>
  61. </div>
  62. </div>
  63. <div class="text-muted">Does your organization use bootstrap-select? Open an issue, and include a link and logo, and you'll be added to the list.</div>