All Projects → SortableJS → Jquery Sortablejs

SortableJS / Jquery Sortablejs

A jQuery binding for SortableJS

Projects that are alternatives of or similar to Jquery Sortablejs

Vue Smooth Dnd
Vue wrapper components for smooth-dnd
Stars: ✭ 1,121 (+1092.55%)
Mutual labels:  drag-and-drop, draggable, sortable
Jquery Udraggable
make elements draggable by mouse or touch
Stars: ✭ 107 (+13.83%)
Mutual labels:  jquery-plugin, drag-and-drop, jquery
Lean Mean Drag And Drop
Drag&Drop Sorting and Reordering script for complex nested structures
Stars: ✭ 107 (+13.83%)
Mutual labels:  drag-and-drop, draggable, sortable
Dnd Kit
A modern, lightweight, performant, accessible and extensible drag & drop toolkit for React.
Stars: ✭ 3,456 (+3576.6%)
Mutual labels:  draggable, sortable, drag-and-drop
Gijgo
Gijgo - Free Javascript Controls
Stars: ✭ 424 (+351.06%)
Mutual labels:  jquery-plugin, draggable, jquery
React Smooth Dnd
react wrapper components for smooth-dnd
Stars: ✭ 1,560 (+1559.57%)
Mutual labels:  drag-and-drop, draggable, sortable
Ngx Smooth Dnd
angular wrapper for smooth-dnd
Stars: ✭ 152 (+61.7%)
Mutual labels:  drag-and-drop, draggable, sortable
vue-dnd-zone
vue.js plugin for drag and drop functionality
Stars: ✭ 144 (+53.19%)
Mutual labels:  drag-and-drop, sortable, draggable
Smooth Dnd
drag and drop library for javascript
Stars: ✭ 408 (+334.04%)
Mutual labels:  drag-and-drop, draggable, sortable
dflex
The sophisticated Drag and Drop library you've been waiting for 🥳
Stars: ✭ 806 (+757.45%)
Mutual labels:  drag-and-drop, sortable, draggable
Dragact
a dragger layout system with React style .
Stars: ✭ 710 (+655.32%)
Mutual labels:  drag-and-drop, draggable, sortable
Sortable
Reorderable drag-and-drop lists for modern browsers and touch devices. No jQuery or framework required.
Stars: ✭ 23,641 (+25050%)
Mutual labels:  drag-and-drop, draggable, sortable
Gridstrap.js
gridstrap.js is a jQuery plugin designed to take Bootstrap's CSS grid system and turn it into a managed draggable and resizeable grid while truely maintaining its responsive behaviour.
Stars: ✭ 32 (-65.96%)
Mutual labels:  jquery-plugin, draggable, jquery
Multipicker
Form styling plugin for jQuery
Stars: ✭ 90 (-4.26%)
Mutual labels:  jquery-plugin, jquery
Jquery.balloon.js
A jQuery plugin to add balloon tips to elements User-friendly, fine-tunable and without css and images
Stars: ✭ 54 (-42.55%)
Mutual labels:  jquery-plugin, jquery
Cmd Resume
Web-based Command Line Resume
Stars: ✭ 55 (-41.49%)
Mutual labels:  jquery-plugin, jquery
Yii2 Sortable Widgets
🍨 Rubaxa/Sortable for Yii2
Stars: ✭ 54 (-42.55%)
Mutual labels:  drag-and-drop, sortable
Jtap
Tap Event for jQuery
Stars: ✭ 65 (-30.85%)
Mutual labels:  jquery-plugin, jquery
Translucent
Translucent plastic card theme.
Stars: ✭ 93 (-1.06%)
Mutual labels:  jquery-plugin, jquery
Jalert
jQuery alert/modal/lightbox plugin
Stars: ✭ 73 (-22.34%)
Mutual labels:  jquery-plugin, jquery

jQuery SortableJS

A jQuery binding for SortableJS

Demo: https://jsbin.com/nopixes/edit?html,js,console,output (credit to @laflier)

Installation

Webpack/Browserify

Install package:

npm i -D jquery-sortablejs

Import into project:

import 'jquery-sortablejs';

CDN:

<script src="https://cdn.jsdelivr.net/npm/[email protected]/jquery-sortable.js"></script>

Usage

Initialization

// Without options:
$('#my-list').sortable();

// With options:
$('#my-list').sortable({
	// SortableJS options go here
	// See: (https://github.com/SortableJS/Sortable#options)

	handle: '.handle',
	invertSwap: true,
	// . . .
})

Getting Sortable instance

$('#my-list').sortable();


var mySortableList = $('#my-list').sortable('widget');

Getting/Setting options

Call .sortable() with the first argument as the option name and the second as the option value

// Get an option
var isDisabled = $('#my-list').sortable('disabled');

// Set an option
$('#my-list').sortable('disabled', !isDisabled);

Destroying Sortable

Pass 'destroy' argument into .sortable()

// Destroy Sortable
$('#my-list').sortable('destroy');

Calling Sortable functions

Pass the name of the function as string into .sortable(), followed by any arguments

// Sortable toArray
var order = $('#my-list').sortable('toArray');

License

MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].