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

Method _removeDD

src/gridstack.ts:2397–2404  ·  view source on GitHub ↗

@internal removes any drag&drop present (called during destroy)

(el: DDElementHost)

Source from the content-addressed store, hash-verified

2395
2396 /** @internal removes any drag&drop present (called during destroy) */
2397 protected _removeDD(el: DDElementHost): GridStack {
2398 dd.draggable(el, 'destroy').resizable(el, 'destroy');
2399 if (el.gridstackNode) {
2400 delete el.gridstackNode._initDD; // reset our DD init flag
2401 }
2402 delete el.ddElement;
2403 return this;
2404 }
2405
2406 /** @internal called to add drag over to support widgets being added externally */
2407 protected _setupAcceptWidget(): GridStack {

Callers 5

makeSubGridMethod · 0.95
removeWidgetMethod · 0.95
removeAllMethod · 0.95
_setupAcceptWidgetMethod · 0.95
prepareDragDropMethod · 0.95

Calls 2

draggableMethod · 0.80
resizableMethod · 0.45

Tested by

no test coverage detected