e-oj / Magic-Grid

A simple, lightweight Javascript library for dynamic grid layouts.
https://www.npmjs.com/package/magic-grid
MIT License
3.14k stars 144 forks source link

Callback after Magic Grid is finished? #55

Open wes-p opened 2 years ago

wes-p commented 2 years ago

Is there a possibility to add a function callback after the script is completely finished with calculating and rendering the new layout? I am trying to add an indent to certain images based on their position in the grid. But this function only works after the positioning of the grid is finished and for that I ideally would listen for the grids own "i-am-finished"-event or something like that. Is it possible to do that? I didn't find anything in the documentation.

e-oj commented 5 months ago

We will be adding this in an upcoming release