dnd-core
Drag and drop sans the GUI
Last updated 6 months ago by darthtrevino .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ 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 (3 years ago)
  • 11.1.3                                ...           latest (6 months ago)

81 Versions

  • 11.1.3                                ...           6 months ago
  • 11.1.1                                ...           6 months ago
  • 11.1.0                                ...           6 months ago
  • 11.0.0                                ...           6 months ago
  • 10.0.2                                ...           a year ago
  • 10.0.1                                ...           a year ago
  • 10.0.0                                ...           a year ago
  • 9.5.1                                ...           a year ago
  • 9.5.0                                ...           a year ago
  • 9.4.0                                ...           a year ago
  • 9.3.4                                ...           a year ago
  • 9.3.2                                ...           a year ago
  • 9.3.1                                ...           a year ago
  • 9.1.0                                ...           a year ago
  • 9.0.0                                ...           a year ago
  • 8.0.3                                ...           a year ago
  • 7.7.0                                ...           a year ago
  • 8.0.2                                ...           a year ago
  • 8.0.0                                ...           a year ago
  • 7.6.0                                ...           a year ago
  • 7.5.0                                ...           a year ago
  • 7.4.4                                ...           2 years ago
  • 7.4.0                                ...           2 years ago
  • 7.2.0                                ...           2 years ago
  • 7.1.0                                ...           2 years ago
  • 7.0.2                                ...           2 years ago
  • 7.0.1                                ...           2 years ago
  • 7.0.0                                ...           2 years ago
  • 6.0.0                                ...           2 years ago
  • 4.0.5                                ...           2 years ago
  • 4.0.4                                ...           2 years ago
  • 4.0.3                                ...           2 years ago
  • 4.0.2                                ...           2 years ago
  • 4.0.0                                ...           2 years ago
  • 3.0.2                                ...           2 years ago
  • 3.0.1 [deprecated]           ...           2 years ago
  • 3.0.0                                ...           3 years ago
  • 2.6.0                                ...           3 years ago
  • 2.5.4                                ...           3 years ago
  • 2.5.3                                ...           3 years ago
  • 2.5.2                                ...           3 years ago
  • 2.5.1                                ...           3 years ago
  • 2.4.0                                ...           4 years ago
  • 2.3.0                                ...           4 years ago
  • 2.2.4                                ...           4 years ago
  • 2.2.3                                ...           4 years ago
  • 2.1.0                                ...           4 years ago
  • 2.0.2                                ...           5 years ago
  • 2.0.1                                ...           5 years ago
  • 1.3.0                                ...           5 years ago
  • 1.2.2                                ...           5 years ago
  • 1.2.1                                ...           5 years ago
  • 1.2.0 [deprecated]           ...           5 years ago
  • 1.1.0                                ...           6 years ago
  • 1.0.2                                ...           6 years ago
  • 1.0.1                                ...           6 years ago
  • 1.0.0                                ...           6 years ago
  • 0.13.1                                ...           6 years ago
  • 0.13.0                                ...           6 years ago
  • 0.12.1                                ...           6 years ago
  • 0.12.0                                ...           6 years ago
  • 0.11.0                                ...           6 years ago
  • 0.10.0                                ...           6 years ago
  • 0.9.0                                ...           6 years ago
  • 0.8.0                                ...           6 years ago
  • 0.7.0                                ...           6 years ago
  • 0.6.1                                ...           6 years ago
  • 0.6.0                                ...           6 years ago
  • 0.5.5                                ...           6 years ago
  • 0.5.4                                ...           6 years ago
  • 0.5.3                                ...           6 years ago
  • 0.5.1                                ...           6 years ago
  • 0.5.0                                ...           6 years ago
  • 0.4.3                                ...           6 years ago
  • 0.4.2                                ...           6 years ago
  • 0.4.1                                ...           6 years ago
  • 0.4.0                                ...           6 years ago
  • 0.3.1                                ...           6 years ago
  • 0.3.0                                ...           6 years ago
  • 0.1.0                                ...           6 years ago
  • 0.0.1                                ...           6 years ago
Downloads
Today 469
This Week 17,463
This Month 83,765
Last Day 4,312
Last Week 23,006
Last Month 67,762
Dependencies (3)
Dev Dependencies (0)
None
Dependents (100)

Copyright 2014 - 2016 © taobao.org |