How to use the dnd-core.DropTarget function in dnd-core

To help you get started, we’ve selected a few dnd-core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github react-dnd / react-dnd / dist-modules / ComponentDropTarget.js View on Github external
args[_key3] = arguments[_key3];
    }

    if (this.spec.drop) {
      var _spec$drop;

      return (_spec$drop = this.spec.drop).call.apply(_spec$drop, [null, this.props].concat(args, [this.getComponentRef()]));
    } else {
      var _DropTarget$prototype$drop;

      return (_DropTarget$prototype$drop = _DropTarget.prototype.drop).call.apply(_DropTarget$prototype$drop, [this].concat(args));
    }
  };

  return ComponentDropTarget;
})(_DropTarget2.DropTarget);

exports['default'] = ComponentDropTarget;
module.exports = exports['default'];

dnd-core

Drag and drop sans the GUI

MIT
Latest version published 2 years ago

Package Health Score

86 / 100
Full package analysis

Similar packages