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

Function insertMultiDragClones

modular/sortable.core.esm.js:3343–3352  ·  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

3341 * @param {HTMLElement} rootEl
3342 */
3343function insertMultiDragClones(elementsInserted, rootEl) {
3344 multiDragClones.forEach(function (clone, i) {
3345 var target = rootEl.children[clone.sortableIndex + (elementsInserted ? Number(i) : 0)];
3346 if (target) {
3347 rootEl.insertBefore(clone, target);
3348 } else {
3349 rootEl.appendChild(clone);
3350 }
3351 });
3352}
3353function removeMultiDragElements() {
3354 multiDragElements.forEach(function (multiDragElement) {
3355 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…