user265505
user265505

Reputation: 419

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

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

Upvotes: 14

Views: 2564

Answers (4)

Marc_Alx
Marc_Alx

Reputation: 1441

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

Upvotes: 0

lmsurprenant
lmsurprenant

Reputation: 1935

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

Upvotes: 0

Anatol Bivol
Anatol Bivol

Reputation: 1008

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

Upvotes: 4

kimomat
kimomat

Reputation: 2399

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

Upvotes: 0

Related Questions