Skip to content

Sprucely.io drag-and-drop widget - Nested objects support for react-beatiful-dnd

License

Notifications You must be signed in to change notification settings

Unemyr/react-beautiful-dnd-nested

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview, motivation and references

  • This is a Jun'2023 fork of the popular react-beautiful-dnd library (https://github.com/atlassian/react-beautiful-dnd)
  • Motivation - This fork has minor modifications to allow multiple nested lists (in different vertical and horizontal orientation) to get improved user experience and switch more smoothly and correctly between different nested lists while dragging objects
  • It was inspired by the Dec'2018 patch of the library by welldan97 (https://github.com/welldan97/react-beautiful-dnd-nested), that is no longer directly applicable on recent codebase. Thanks welldan97, saved some time looking for the right place to modify the code!

Behavior and limitations

The priority decision of which list to drop the dragged object to is based on an assumption that the list of droppable lists have been loaded in a nested order (which is the case in our tests so far, at least). There could be very specific conditions where this may not be the behaviour that you are looking for

Get started

Compile a local library binary using 'yarn run build'

Demo example

You can see the nested lists support in action on Sprucely | Data Insights and Interactive Dashboards Service in the Dashboard Editor view (Note: You will need an account in order to access this part of the service, but its totally free and an e-mail address is the only detail asked for).

If you are not ready to setup an account, you can also refer to a screenshot of nested horizontal and vertical containers stacking widgets here How Does Sprucely.io Work and Get Started, although it does not allow you to interact with or test the behaviour of react-beautiful-dnd-nested directly.

About

Sprucely.io drag-and-drop widget - Nested objects support for react-beatiful-dnd

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%