Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 6, 2024 via pnpm

sortablejs 1.15.0

JavaScript library for reorderable drag-and-drop lists on modern browsers and touch devices. No jQuery required. Supports Meteor, AngularJS, React, Polymer, Vue, Knockout and any CSS library, e.g. Bootstrap.
Package summary
Share
0
issues
1
license
1
MIT
Package created
25 Nov 2014
Version published
20 Mar 2022
Maintainers
2
Total deps
1
Direct deps
0
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
sortablejs@1.15.0
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

0
All Dependencies CSV
β“˜ This is a list of sortablejs 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities

Visualizations

Frequently Asked Questions

What does sortablejs do?

Sortablejs is a JavaScript library that allows users to create reorderable drag-and-drop lists on modern browsers and touch devices. No dependency on jQuery is required. The library supports Meteor, AngularJS, React, Polymer, Vue, Knockout, and any CSS libraries like Bootstrap. It features advanced capabilities such as touch device support, CSS animations upon moving items, smart auto-scrolling, support for CSS transforms, and multi-drag support among many others.

How do you use sortablejs?

To use sortablejs in your JavaScript project, first install it using NPM or Bower using the commands npm install sortablejs --save or bower install --save sortablejs. Then, import it into your project as needed:

// Default SortableJS
import Sortable from 'sortablejs';

Next, create a sortable instance in your JavaScript code by calling Sortable.create with the id of the HTML element you want to make sortable. For example:

<ul id="items">
	<li>item 1</li>
	<li>item 2</li>
	<li>item 3</li>
</ul>
var el = document.getElementById('items');
var sortable = Sortable.create(el);

Additional options can be set as well to control the behavior of the sortable instance:

var sortable = new Sortable(el, {
	group: "name",
	sort: true,
	animation: 150,
	handle: ".my-handle",
	disabled: false,
});

Where are the sortablejs docs?

The full documentation for sortablejs, including detailed API descriptions, usage examples, optional configurations, and more can be found at the GitHub repository - https://github.com/SortableJS/Sortable. The npm package details are available on npmjs.com/package/sortablejs.