Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Creates a modern looking select field for form submits which can be customized. It is built with Bootstrap and does not need jQuery to be initialized

License

Notifications You must be signed in to change notification settings

kevingostomski/bootstrap-nice-select

Repository files navigation

GitHub Workflow Status npm GitHub package.json dependency version (dev dep on branch) GitHub code size in bytes Website GitHub

⚠️ This package has been deprecated in favor of better-nice-select. Please consider migrating to better-nice-select for continued support and updates: https://github.com/kevingostomski/better-nice-select

A modern looking select field for form submits which uses Bootstrap as dependency to style it. It can be initialized over HTML or JS and does not need jQuery to work with!

Features

  • Created for Twitter Bootstrap (All versions supported)
  • Responsive web design
  • Modern looking scrollable select lists
  • Fully skinnable, CSS built with SASS
  • Localization
  • Get data in JSON format using AJAX/Fetch and have them searchable
  • Allow users to type in new options and add it on the fly
  • Setting icons option to override possible currently available themes
  • Options for calling methods which will be automatically added after the respective event listeners

Installation

Manual Download

Use Releases Pages or clone the repo: https://github.com/kevingostomski/bootstrap-nice-select.git and use the dist folder.

Npm

npm install bootstrap-nice-select

Yarn

yarn add bootstrap-nice-select

CDN

You can source bootstrap-nice-select directly from a CDN like unpkg.

<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://unpkg.com/bootstrap-nice-select@1.4.4/dist/css/bootstrap-nice-select.min.css">

<!-- Latest compiled and minified JavaScript -->
<script src="https://unpkg.com/bootstrap-nice-select@1.4.4/dist/js/bootstrap-nice-select.min.js"></script>

The CDN is updated after the release is made public, which means that there is probably a delay between the publishing of a release and its availability on the CDN.

Release History

Look at the Change Log.

Local Development

Development of this plugin was with Visual Studio Code.

To develop bootstrap-nice-select locally please run:

mkdir bootstrap-nice-select-dev
cd bootstrap-nice-select-dev
git clone https://github.com/kevingostomski/bootstrap-nice-select.git
git clone https://github.com/kevingostomski/bootstrap-nice-select-examples.git
cd bootstrap-nice-select
npm link
cd ..
cd bootstrap-nice-select-examples
npm link bootstrap-nice-select

To develop the component, the VS Code plugin Live Server was used (special thanks to the maintainers for this wonderful plugin). In addition, if you want to update the npm link project which is used, use npm run dev so sourcemaps are available to test the project better.

Copyright and license

Copyright (C) 2023

The license is available within the repository in the LICENSE file.

About

Creates a modern looking select field for form submits which can be customized. It is built with Bootstrap and does not need jQuery to be initialized

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published