bootstrap_select
3rd party js selectpicker bootstrap-select form widget for Bootstrap themed sites. Library will be loaded by default via CDN.
But the module will check if you have a local copy in web/libraries/bootstrap-select and use it instead.
This module implements the js package bootstrap-select a jQuery plugin for bootstrap sites. The widget is suitable for most option fields like (list_integer, list_float, list_string, entity_reference)
Implemented Options
- Live search
- Actions box
- Placeholder
- Header
- Selected text format
If you need another option just add a feature request.
Dependencies:
Bootstrap v4's requirements
I want to use my local bootstrap-select files
You can download the library manually via Github or use asset packagist https://asset-packagist.org/ in your composer.json
Add the following to your project composer.json in the "repositories" section.
"repositories": [
{
"type": "composer",
"url": "https://asset-packagist.org"
}
]
Make sure you have required the oomphinc/composer-installers-extender package.
Add the following to your project composer.json in the "extra" section.
"installer-types": [
"bower-asset",
"npm-asset"
],
"installer-paths": {
"web/libraries/{$name}": ["type:drupal-library", "type:npm-asset"],
}Now you can composer require npm-asset/bootstrap-select