https://github.com/reduxframework/select2-sortable
Plugin to make select2 (https://github.com/ivaynberg/select2) multiple select sortable out of the box.
https://github.com/reduxframework/select2-sortable
Last synced: about 2 months ago
JSON representation
Plugin to make select2 (https://github.com/ivaynberg/select2) multiple select sortable out of the box.
- Host: GitHub
- URL: https://github.com/reduxframework/select2-sortable
- Owner: reduxframework
- Created: 2014-12-04T06:09:56.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-12-04T06:14:19.000Z (over 10 years ago)
- Last Synced: 2025-01-13T10:51:52.837Z (3 months ago)
- Language: JavaScript
- Size: 117 KB
- Stars: 2
- Watchers: 9
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
select2-sortable
================This code has been modified from it's original source to support select2 groupings, which the original did not support.
Plugin that makes [select2](https://github.com/ivaynberg/select2) multiple select sortable out of the box.
Usage:
// init select2 sortable
$(select2multiselect).select2Sortable();
// destroy select2 sortable
$(select2multiselect).select2Sortable('destroy');
// manually trigger the sorting
$(select2multiselect).select2SortableOrder();
// custom options
$(select2multiselect).select2Sortable({
bindOrder: 'formSubmit' // or `sortableStop`,
sortableOptions: {
// please refer to jQuery UI sortable API (http://api.jqueryui.com/sortable/)
}
});