![Lintly](https://lintly.com/gh/maykinmedia/dual-listbox/badge.svg)
![NPM](https://nodei.co/npm/dual-listbox.png?downloads=true&downloadRank=true&stars=true)
Dual Listbox
Make your multi select pretty and easy to use with only javascript.
Styling.
![Default](https://github.com/maykinmedia/dual-listbox/raw/HEAD/screenshots/select1.png)
with selected options and one option highlighted.
![selected](https://github.com/maykinmedia/dual-listbox/raw/HEAD/screenshots/select2.png)
Install
Install with npm
$ npm i dual-listbox --save
Usage
new DualListbox('select');
new DualListbox('.select');
new DualListbox('#select');
You can also pass some options to the DualListbox
new DualListbox('#select', {
addEvent: function(value) {
console.log(value);
},
removeEvent: function(value) {
console.log(value);
},
availableTitle: 'Different title',
selectedTitle: 'Different title',
addButtonText: '>',
removeButtonText: '<',
addAllButtonText: '>>',
removeAllButtonText: '<<'
});
Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Author
Maykin Media
License
Copyright © 2016 Maykin Media
Licensed under the MIT license.