metafizzy / packery

:bento: Gapless, draggable grid layouts
https://packery.metafizzy.co
4.13k stars 315 forks source link

Save packery gird items default positions #535

Open ghost opened 4 years ago

ghost commented 4 years ago

Hi all, I need to save the default positions of the grid items on a button click. I'm able to save and reload the grid items. but, after resetting the grid items, if I hit F5 it is taking me back to previous grid positions.

I want to save default positions on a click. please help.

// I'm not able to save the default grid positions after this line of code. $grid.packery('reloadItems');

thanks in advance.

ghost commented 4 years ago

all I want is, save pre-dragged position on button click.

please help, thank you.

flieks commented 3 years ago

Also interested. @Hulk93 did you find this ?