sortablejs-stiffghost
v1.15.1
Published
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.
Downloads
4
Maintainers
Readme
sortablejs-stiffghost
sortablejs-stiffghost 是sortablejs的分支,仅增加stiffGhost
参数,其他用法请参考官方文档
Getting Started
Install with NPM:
npm i sortablejs-stiffghost
Import into your project:
import SortableStiffghost from 'sortablejs-stiffghost';
Usage
<ul id="items">
<li>item 1</li>
<li>item 2</li>
<li>item 3</li>
</ul>
var el = document.getElementById('items');
new SortableStiffghost.create(el, {
stiffGhost: true,
forceFallback: true, // 这个参数必须要
});