Dependencies
- jquery (1.7 and greater), as peer dependency
- Note: it is installed automatically in development, or in projects using NPM 1 or 2. When using NPM from version 3 on, just a warning is thrown and the user needs to manually install an explicit version in their own project (e.g.
npm install --save jquery@3.5.1
).
- Note: it is installed automatically in development, or in projects using NPM 1 or 2. When using NPM from version 3 on, just a warning is thrown and the user needs to manually install an explicit version in their own project (e.g.
Optional:
- jquery-ui (required by
drag_drop
plugin)
Installing Manually
All pre-built files needed to use Selectize can be found in the “dist” folder.
If you’re looking to get started with minimal fuss, include
selectize.min.js
(bundles Sifter and Microplugin
dependencies – also available un-minified for debugging, just remove the
.min
part) and css/selectize.default.css
.
Selectize is available at cdnjs.
- js/
- selectize.js — With dependencies, minus jquery
- selectize.min.js — With dependencies, minus jquery
- scss/ — Sass source files for customization (Bootstrap 3+ compatible)
- less/ — Less source files for customization (Bootstrap 2⁄3 compatible)
- css/
- selectize.css — Core styles
- selectize.default.css — Default theme (with core styles)
- selectize.bootstrap2.css - Bootstrap 2 theme
- selectize.bootstrap3.css - Bootstrap 3 theme
- selectize.bootstrap4.css - Bootstrap 4 theme
- selectize.bootstrap5.css - Bootstrap 5 theme
Tests
Please ensure all the tests pass:
npm test # defaults to ChromHeadless
BROWSERS=Firefox npm test
BROWSERS=Firefox,Chrome npm test
BROWSERS=Firefox,Chrome,Safari npm test
Local environment
To run Selectize locally:
npm start
You can then run the examples at https://loopback.website:4000/
.