8000 GitHub - MikeNats/Rxjs-Drag-En-Drop: rxjs drag en drop
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

MikeNats/Rxjs-Drag-En-Drop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rxjs Drag En Drop

This is a mutliple level drag and drop implementation using Rxjs. For two level dnd follow the comments in src/dragEnDrop/dnd.js

Demo:

npm i && npm run start

Structure:

  • src/dragEnDrop/dnd$.js rxjs implementation
  • src/dragEnDrop/dnd.js helper methods for implementing animation etc

Use:

/* You can develop your own methods for each subscription */

dragStart$.subscribe((event) =>
  generateNewDraggable(event)); 
  
drag$.subscribe(({draggable, event}) => 
  dragElement(draggable, event));  

dragEnDrop$.subscribe(({event, draggable})=> 
  handleDropabble(event, draggable));

About

rxjs drag en drop

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0