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

Function insertMultiDragClones

modular/sortable.esm.js:3342–3351  ·  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

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