MCPcopy Index your code
hub / github.com/SortableJS/Sortable / insertMultiDragClones

Function insertMultiDragClones

Sortable.js:3348–3357  ·  view source on GitHub ↗

* Insert multi-drag clones * @param {[Boolean]} elementsInserted Whether the multi-drag elements are inserted * @param {HTMLElement} rootEl

(elementsInserted, rootEl)

Source from the content-addressed store, hash-verified

3346 * @param {HTMLElement} rootEl
3347 */
3348 function insertMultiDragClones(elementsInserted, rootEl) {
3349 multiDragClones.forEach(function (clone, i) {
3350 var target = rootEl.children[clone.sortableIndex + (elementsInserted ? Number(i) : 0)];
3351 if (target) {
3352 rootEl.insertBefore(clone, target);
3353 } else {
3354 rootEl.appendChild(clone);
3355 }
3356 });
3357 }
3358 function removeMultiDragElements() {
3359 multiDragElements.forEach(function (multiDragElement) {
3360 if (multiDragElement === dragEl$1) return;

Callers 1

MultiDragPluginFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…