reduxframework / select2-sortable

Plugin to make select2 (https://github.com/ivaynberg/select2) multiple select sortable out of the box.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 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/)
	}
});

About

Plugin to make select2 (https://github.com/ivaynberg/select2) multiple select sortable out of the box.


Languages

Language:JavaScript 100.0%