is there any way to make Gridster.js tile(s) stick, that is not move up vertically to fill empty space. Kind of like the way a layout program with snap-to-grid turned on works...
相关问题
- Is there a limit to how many levels you can nest i
- How to toggle on Order in ReactJS
- How to fix IE ClearType + jQuery opacity problem i
- void before promise syntax
- jQuery add and remove delay
You may also be interested in the following prototype from my team: https://github.com/ibmjstart/gridplumb
Specifically, the modifications to grister can be found at https://github.com/ibmjstart/gridplumb/blob/master/src/extend-gridster.js
My answer is not directly linked to gridster but to one of its fork : gridstack. I post this answer as I found this topic while searching for this functionality in gridstack.
So in gridstack solution is to put this property in grid options :
Have you tried packery? http://packery.metafizzy.co/ This library has many drag and drop features.
Use this fork https://github.com/dsmorse/gridster.js with
option.
See demo : http://dsmorse.github.io/gridster.js/demos/sticky-postion.html