dnd-core
Drag and drop sans the GUI
Last updated 6 years ago by darthtrevino .
MIT · Repository · Bugs · Original npm
$ cnpm install dnd-core 
SYNC missed versions from official npm registry.

npm package Build Status Test Coverage

dnd-core

Drag and drop sans the GUI.

This is a clean implementation of drag and drop primitives that does not depend on the browser. It powers React DnD internally.

Wat?

To give you a better idea:

  • There is no DOM here
  • We let you define drop target and drag source logic
  • We let you supply custom underlying implementations (console, DOM via jQuery, React, React Native, whatever)
  • We manage drag source and drop target interaction

This was written to support some rather complicated scenarios that were too hard to implement in React DnD due to its current architecture:

As it turns out, these problems are much easier to solve when DOM is thrown out of the window.

What's the API like?

Tests should give you some idea. You register drag sources and drop targets, connect a backend (you can use barebones TestBackend or implement a fancy real one yourself), and your drag sources and drop targets magically begin to interact.

Current Tags

  • 3.0.0                                ...           beta (7 years ago)
  • 16.0.1                                ...           latest (3 years ago)

15 Versions

  • 16.0.1                                ...           3 years ago
  • 15.1.1                                ...           4 years ago
  • 14.0.1                                ...           4 years ago
  • 12.0.0                                ...           5 years ago
  • 14.0.0                                ...           4 years ago
  • 3.0.2                                ...           7 years ago
  • 11.1.3                                ...           5 years ago
  • 3.0.0                                ...           7 years ago
  • 4.0.5                                ...           7 years ago
  • 6.0.0                                ...           7 years ago
  • 8.0.3                                ...           6 years ago
  • 10.0.2                                ...           6 years ago
  • 7.7.0                                ...           6 years ago
  • 2.6.0                                ...           7 years ago
  • 9.5.1                                ...           6 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org