Make gridster.js tiles stick in specific grid positions (snap to grid)
Asked Answered
S

4

14

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...

Scotia answered 24/6, 2014 at 18:25 Comment(1)
you can use GSAP as an alternative. It already have Snap to Grid functionality.Coffle
C
4

Use this fork https://github.com/dsmorse/gridster.js with

shift_widgets_up: false

option.

See demo : http://dsmorse.github.io/gridster.js/demos/sticky-postion.html

Coulisse answered 10/11, 2015 at 14:52 Comment(0)
A
0

Have you tried packery? http://packery.metafizzy.co/ This library has many drag and drop features.

Asia answered 20/7, 2015 at 15:17 Comment(0)
R
0

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

Redundancy answered 20/11, 2015 at 19:56 Comment(0)
P
0

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 :

float:true
Pathogen answered 6/2, 2017 at 15:51 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.