@ppci/sortable-list
v1.2.5
Published
Sortable list
Downloads
10
Keywords
Readme
Sortable list
Table of contents
Installation
NPM
npm i @ppci/sortable-list
// Polyfill: https://lit-element.polymer-project.org/guide/use#polyfills
npm i --save-dev @webcomponents/webcomponentsjs
Usage
Javascript
import '@ppci/sortable-list'
Browser
<!-- Default -->
<script type="module" src="https://cdn.jsdelivr.net/npm/@ppci/sortable-list/builds/index.min.js" />
<!-- Legacy -->
<script type="module" src="https://cdn.jsdelivr.net/npm/@ppci/sortable-list/builds/legacy.min.js" />
<!-- Component -->
<sortable-list
.items=${Array}
handleClass=".drag-handle"
></sortable-list>
Properties
**Make sure** to prefix classname with a dot.
</td>
<td></td>