]> BookStack Code Mirror - bookstack/blobdiff - resources/js/components/sortable-list.js
Finished updating remainder of JS components to new system
[bookstack] / resources / js / components / sortable-list.js
index 0af0e11c901a5b58d98f4ef7687004c117334e3d..bbbd92088ab9f3191e516cecae9833c2058b05a7 100644 (file)
@@ -1,4 +1,5 @@
 import Sortable from "sortablejs";
+import {Component} from "./component";
 
 /**
  * SortableList
@@ -6,10 +7,8 @@ import Sortable from "sortablejs";
  * Can have data set on the dragged items by setting a 'data-drag-content' attribute.
  * This attribute must contain JSON where the keys are content types and the values are
  * the data to set on the data-transfer.
- *
- * @extends {Component}
  */
-class SortableList {
+export class SortableList extends Component {
     setup() {
         this.container = this.$el;
         this.handleSelector = this.$opts.handleSelector;
@@ -34,6 +33,4 @@ class SortableList {
             dragoverBubble: false,
         });
     }
-}
-
-export default SortableList;
\ No newline at end of file
+}
\ No newline at end of file