Reputation: 1034
Is it possible to use drag and drop to reorder HTML canvas rectangles, and what is the best way to go about this? Given a bunch of rectangles, I want to be able to change their order by dragging. Or is it easier to achieve this using divs instead? I want to create a rectangle packing program with drag and drop capabilities similar to Packery except implementing a different rectangle packing algorithm.
Upvotes: 0
Views: 175
Reputation: 1612
The best way to change order by dragging rectangles is by implementing these plugins like Packery,Gridster,ShapeShift rather than using divs instead. Gridster cannot be used for multiple layouts whereas Shapeshift comes to the rescue. Comparing these two, Shapeshift is responsive.I suggest to implement any one of these according to their requirement and their frequency of usage.
Upvotes: 1