kombai / freewall

Freewall is a cross-browser and responsive jQuery plugin to help you create grid, image and masonry layouts for desktop, mobile, and tablet...
MIT License
1.85k stars 375 forks source link

How to Auto save data-position? #198

Closed Nornatt closed 8 years ago

Nornatt commented 8 years ago

onDrop Block auto save data-position all block

Thank you

kombai commented 8 years ago

Hi, you can get all postion of block by add onGridArrange event:

wall.addCustomEvent("onGridArrange", function(container, setting) {
                console.log("Arrange", setting.runtime.blocks);
            });

Then you can save it. You also get the size of blocks too.