How to use the react-dnd.DropEffects.MOVE function in react-dnd

To help you get started, we’ve selected a few react-dnd 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 rsamec / react-designer / src / app / components / ResizableHandle.js View on Github external
beginDrag:function(component) {
                        return {
                            effectAllowed: DropEffects.MOVE,
                            item: component.props
                        };
                    }
                }
github react-dnd / react-dnd / examples / _drag-around-experimental / Box.js View on Github external
beginDrag(e) {
          return {
            effectAllowed: DropEffects.MOVE,
            dragPreview: getEmptyImage(),
            item: {
              id: this.props.id,
              children: this.props.children,
              startLeft: this.props.left,
              startTop: this.props.top,
              startClientX: e.clientX,
              startClientY: e.clientY
            }
          };
        }
      }
github rsamec / react-designer / src / app / components / Box.js View on Github external
beginDrag:function(component) {
                        return {
                            effectAllowed: DropEffects.MOVE,
                            item: component.props
                        };
                    }
                }