A plugin for selectize.js Adds an option and event for item editing.
Clone or download selectize.js and copy the contents of this repository to the plugins folder of selectize.js. Build selectize.js via grunt, so this plugin is added to selectize.min.js or standalone or whatever works for you.
// WITHIN THE selectize.js REPOSITORY!
grunt --plugins=* OR grunt --plugins=edit_item
Refer to the selectize.js doc custom builds
See Contributing
This plugin adds "Edit [Option]" to the selectize.js dropdown
- Keeps the items id/value and passign it to a 'option_edit' callback for event handling
Please keep in mind, this code is only made to satisfy my needs, feel free to alter or contribute.
If you'd like to contribute, please fork the repository and use a feature branch. Pull requests are warmly welcome.
See the Selectize Plugin API or Example Plugins for further information about plugin development and microplugin.js
The code in this project is licensed under the Unilicense. Just do whatever you want to do with these lines, but don't start a nuclear war and maybe send me some warm words, if you are using it for your next billion $$$ idea.