An open API service indexing awesome lists of open source software.

https://github.com/sharedlabs/sortable-list

A web component for reorderable drag-and-drop lists on modern browsers and touch devices.
https://github.com/sharedlabs/sortable-list

lightweight polymer sortable webcomponents

Last synced: 15 days ago
JSON representation

A web component for reorderable drag-and-drop lists on modern browsers and touch devices.

Awesome Lists containing this project

README

          

[![License](https://img.shields.io/github/license/sharedlabs/sortable-list.svg?style=flat-square)](https://github.com/sharedlabs/sortable-list/blob/master/LICENSE.md)
[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg?style=flat-square)](https://beta.webcomponents.org/element/sharedlabs/sortable-list)

_[Demo and API docs](https://www.webcomponents.org/element/sharedlabs/sortable-list/demo/demo/index.html)_

![GIF](https://zippy.gfycat.com/IncredibleBronzeKillerwhale.gif)

# sortable-list

`sortable-list` is a custom element that allows you to sort an element from a list by dragging it.

```html

Item 1

Item 2

Item 3

...
onSortFinish(event) {
const sortedItem = event.detail.target;
}
```

When using a dom-repeat you must specify which items are sortable.
```html



```

---

### TODO:

- [ ] Allow sort of elements with different sizes #2