MCPcopy
hub / github.com/Shopify/draggable / createSandbox

Function createSandbox

test/helpers/environment.ts:3–9  ·  view source on GitHub ↗
(content: string)

Source from the content-addressed store, hash-verified

1import {setImmediate} from 'timers';
2
3export function createSandbox(content: string) {
4 const sandbox = document.createElement('div');
5 sandbox.innerHTML = content;
6 document.body.appendChild(sandbox);
7
8 return sandbox;
9}
10
11export function withElementFromPoint(
12 elementFromPoint: HTMLElement,

Callers 11

Droppable.test.jsFile · 0.90
closest.test.tsFile · 0.90
setupFunction · 0.90
setupFunction · 0.90
setupFunction · 0.90
Draggable.test.jsFile · 0.90
Focusable.test.jsFile · 0.90
Mirror.test.jsFile · 0.90
Sortable.test.jsFile · 0.90
Swappable.test.jsFile · 0.90

Calls

no outgoing calls

Tested by 3

setupFunction · 0.72
setupFunction · 0.72
setupFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…