haubek / bootstrap4c-chosen
Bootstrap 4 Component - Chosen
Package info
github.com/haubek/bootstrap4c-chosen
Language:CSS
pkg:composer/haubek/bootstrap4c-chosen
1.1.1
2019-04-15 03:01 UTC
Requires
- harvesthq/chosen: ^1.8.3
- twbs/bootstrap: ^4.1.1
This package is not auto-updated.
Last update: 2026-06-18 18:38:02 UTC
README
chosen
This is a Fork of alxlit's great stylesheet (https://github.com/alxlit/bootstrap-chosen).
The Bootstrap4C Chosen is a simple Bootstrap 4 styled component for the brilliant Harvest Chosen jQuery plugin (https://github.com/harvesthq/chosen). The component change the default bitmap icons into nice SVG and works better with the Bootstrap 4 variables.
See demo here => https://haubek.github.io
NPM install
npm install bootstrap4c-chosen
CSS
<link href="path/to/component-chosen.min.css" rel="stylesheet">
HTML5 markup
<select id="single" class="form-control form-control-chosen" data-placeholder="Please select...">
<option></option>
<option>Option One</option>
<option>Option Two</option>
<option>Option Three</option>
</select>
<select id="multiple" class="form-control form-control-chosen" data-placeholder="Please select..." multiple>
<option></option>
<option>Option One</option>
<option>Option Two</option>
<option>Option Three</option>
</select>
Javascript
$('.form-control-chosen').chosen();