fluid-dnd
Version:
An agnostic drag and drop library to sort all kind of lists. With current support for vue, react and svelte
21 lines (20 loc) • 546 B
JavaScript
var d = Object.defineProperty;
var e = (a, s, l) => s in a ? d(a, s, { enumerable: !0, configurable: !0, writable: !0, value: l }) : a[s] = l;
var r = (a, s, l) => e(a, typeof s != "symbol" ? s + "" : s, l);
import { a as h, t as n, G as t } from "./index-CU_UvYra.js";
class c {
constructor() {
r(this, "handlers");
this.handlers = [];
}
addSubscriber(s) {
this.handlers.includes(s) || (this.handlers.push(s), h(s, t));
}
toggleGrabClass(s) {
for (const l of this.handlers)
n(l, t, s);
}
}
export {
c as H
};