GithubHelp home page GithubHelp logo

2bj / bootstrap-select Goto Github PK

View Code? Open in Web Editor NEW

This project forked from biggora/bootstrap-select

0.0 2.0 0.0 636 KB

A custom select for Twitter Bootstrap using button dropdown

Home Page: http://plugins.upbootstrap.com/bootstrap-select/

License: MIT License

bootstrap-select's Introduction

Built with Grunt Twitter Bootstrap Select

A custom select / multiselect for Twitter bootstrap using button dropdown, designed to behave like regular Bootstrap selects;

Demo and Documentation

See an example here.

Required

  • Twitter Bootstrap 3.0+
  • jQuery 1.8+

Installation

Download jQuery

Download Bootstrap

Download this plugin.

Include files in your HTML. The minimum required for this plugin are:

<link href="/path/to/bootstrap.css" rel="stylesheet">
<link href="/path/to/bootstrap-select.css" rel="stylesheet">
<script src="/path/to/jquery.js" type="text/javascript"></script>
<script src="/path/to/bootstrap-select.js" type="text/javascript"></script>

Usage

Create your <select> with the .selectpicker class.

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

Enable Bootstrap-Select via JavaScript:

    $('.selectpicker').selectpicker();

Or just

    $('select').selectpicker();

Checkout the documentation for further information.

Compiling CSS and JavaScript

Bootstrap Select uses Grunt with convenient methods. It's how we compile our code, run tests, and more. To use it, install the required dependencies as directed and then run some Grunt commands.

Install Grunt

From the command line:

  1. Install grunt-cli globally with npm install -g grunt-cli.
  2. Navigate to the root /bootstrap-select directory, then run npm install. npm will look at package.json and automatically install the necessary local dependencies listed there.

When completed, you'll be able to run the various Grunt commands provided from the command line.

Unfamiliar with npm? Don't have node installed? That's a-okay. npm stands for node packaged modules and is a way to manage development dependencies through node.js. Download and install node.js before proceeding.

Install Bower

From the command line:

  1. Install bower globally with npm install -g bower.
  2. Navigate to the root /bootstrap-select directory, then run bower install. bower will look at package.json and automatically install the necessary local dependencies listed there.

Available Grunt commands

Build - grunt

Run grunt to run tests locally and compile the CSS and JavaScript into /js and /css. Uses Less and UglifyJS.

Compile all CSS and JavaScript - grunt build

grunt build creates the /js and /css directories with compiled files. Uses Less and UglifyJS.

Only compile CSS - grunt build-css

grunt build-css creates the /css directory with compiled files. Uses Less.

Only compile JavaScript - grunt build-js

grunt build-js creates the /js directory with compiled files. Uses UglifyJS.

Authors

Silvio Moreto, Ana Carolina, caseyjhol, Matt Bryson, and Alexey Gordeyev.

Recommend extensions

Copyright and license

(The MIT License)

Copyright (C) 2013-2014 Silvio Moreto

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Resources

Analytics

Bitdeli Badge

bootstrap-select's People

Contributors

caseyjhol avatar silviomoreto avatar anacarolinats avatar biggora avatar antonellopasella avatar vsn4ik avatar nushio avatar bitdeli-chef avatar broberson avatar ckapatch avatar dfs123d avatar gonzagonza avatar hanzubon avatar

Watchers

Bakyt avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.