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

Method constructor

packages/dnd-core/test/sources.js:43–47  ·  view source on GitHub ↗
(number, allowDrag)

Source from the content-addressed store, hash-verified

41
42export class NumberSource extends DragSource {
43 constructor(number, allowDrag) {
44 super();
45 this.number = number;
46 this.allowDrag = allowDrag;
47 }
48
49 canDrag() {
50 return this.allowDrag;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected