zoukankan      html  css  js  c++  java
  • bootstrap-select

    bootstrap-select

    周下载量 63,214

    是bootstrap中select库下载量最多的。

    https://www.npmjs.com/package/bootstrap-select

    The jQuery plugin that brings select elements into the 21st century with intuitive multiselection, searching, and much more. Now with Bootstrap 4 support.

    https://github.com/snapappointments/bootstrap-select

    Bootstrap-select requires jQuery v1.9.1+, Bootstrap’s dropdown.js component, and Bootstrap's CSS. If you're not already using Bootstrap in your project, a precompiled version of the Bootstrap v3.4.1 minimum requirements can be downloaded here. If using bootstrap-select with Bootstrap v4+, you'll also need Popper.js. For all of Bootstrap v4's requirements, see Getting started. A precompiled version of the requirements will be made available in an upcoming release of bootstrap-select.


    Usage

    Via selectpicker class

    Add the selectpicker class to your select elements to auto-initialize bootstrap-select.

    <select class="selectpicker">
      <option>Mustard</option>
      <option>Ketchup</option>
      <option>Barbecue</option>
    </select>

     

    Via JavaScript

    // To style only selects with the my-select class
    $('.my-select').selectpicker();

    or

    // To style all selects
    $('select').selectpicker();

    If calling bootstrap-select via JavaScript, you will need to wrap your code in a .ready() block or place it at the bottom of the page (after the last instance of bootstrap-select).

    $(function () {
    	$('select').selectpicker();
    });

    Check out the documentation for further information.

    DEMO

  • 相关阅读:
    面试常见问题(2)-数据同步
    面试常见问题-SQL
    4TH PROFILE SOURCE IN SHAREPOINT 2013′S PEOPLE PICKER
    InfoPath代码切换视图
    Winform 的小技巧
    Sharepoint Workflow模板激活
    Hadoop介绍
    InfoPath的常见处理办法
    InfoPath的常见问题---连接外部数据源提示
    flask表单操作
  • 原文地址:https://www.cnblogs.com/lightsong/p/11924281.html
Copyright © 2011-2022 走看看