BookStack/resources/js/components/sortable-list.js
Dan Brown 573c4e26d5
Finished moving tag-manager from a vue to a component
Now tags load with the page, not via AJAX.
2020-06-29 22:11:03 +01:00

19 lines
No EOL
369 B
JavaScript

import Sortable from "sortablejs";
/**
* SortableList
* @extends {Component}
*/
class SortableList {
setup() {
this.container = this.$el;
this.handleSelector = this.$opts.handleSelector;
new Sortable(this.container, {
handle: this.handleSelector,
animation: 150,
});
}
}
export default SortableList;