MCPcopy Index your code
hub / github.com/adobe/react-spectrum / setGlobalDropEffect

Function setGlobalDropEffect

packages/react-aria/src/dnd/utils.ts:421–423  ·  view source on GitHub ↗
(dropEffect: DropEffect | undefined)

Source from the content-addressed store, hash-verified

419type DropEffect = 'none' | 'copy' | 'link' | 'move';
420export let globalDropEffect: DropEffect | undefined;
421export function setGlobalDropEffect(dropEffect: DropEffect | undefined): void {
422 globalDropEffect = dropEffect;
423}
424
425export let globalAllowedDropOperations: DROP_OPERATION = DROP_OPERATION.none;
426export function setGlobalAllowedDropOperations(o: DROP_OPERATION): void {

Callers 3

onDragEndFunction · 0.90
useDragFunction · 0.90
onDropFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected