]> BookStack Code Mirror - bookstack/blob - resources/js/components/sortable-list.js
Default OpenID display name set to standard value
[bookstack] / resources / js / components / sortable-list.js
1 import Sortable from "sortablejs";
2
3 /**
4  * SortableList
5  * @extends {Component}
6  */
7 class SortableList {
8     setup() {
9         this.container = this.$el;
10         this.handleSelector = this.$opts.handleSelector;
11
12         new Sortable(this.container, {
13             handle: this.handleSelector,
14             animation: 150,
15         });
16     }
17 }
18
19 export default SortableList;