MCPcopy Index your code
hub / github.com/gridstack/gridstack.js / setupDraggable

Method setupDraggable

src/dd-element.ts:50–57  ·  view source on GitHub ↗
(opts: DDDragOpt)

Source from the content-addressed store, hash-verified

48 }
49
50 public setupDraggable(opts: DDDragOpt): DDElement {
51 if (!this.ddDraggable) {
52 this.ddDraggable = new DDDraggable(this.el, opts);
53 } else {
54 this.ddDraggable.updateOption(opts);
55 }
56 return this;
57 }
58
59 public cleanDraggable(): DDElement {
60 if (this.ddDraggable) {

Callers 3

draggableMethod · 0.80
dragInMethod · 0.80

Calls 1

updateOptionMethod · 0.65

Tested by

no test coverage detected