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

Method dragIn

src/dd-gridstack.ts:147–150  ·  view source on GitHub ↗
(el: GridStackElement, opts: DDDragOpt)

Source from the content-addressed store, hash-verified

145 }
146
147 public dragIn(el: GridStackElement, opts: DDDragOpt): DDGridStack {
148 this._getDDElements(el).forEach(dEl => dEl.setupDraggable(opts));
149 return this;
150 }
151
152 public droppable(el: GridItemHTMLElement, opts: DDOpts | DDDropOpt, key?: DDKey, value?: DDValue): DDGridStack {
153 if (typeof opts.accept === 'function' && !opts._accept) {

Callers 1

setupDragInMethod · 0.80

Calls 2

_getDDElementsMethod · 0.95
setupDraggableMethod · 0.80

Tested by

no test coverage detected