MCPcopy Create free account
hub / github.com/adobe/react-spectrum / constructor

Method constructor

packages/react-aria/test/dnd/mocks.js:99–103  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

97
98export class DataTransfer {
99 constructor() {
100 this.items = new DataTransferItemList();
101 this.dropEffect = 'none';
102 this.effectAllowed = 'all';
103 }
104
105 setDragImage(dragImage, x, y) {
106 this._dragImage = {node: dragImage, x, y};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected