I have an array of data, and a form
Every time I fill the fom, a new element is added to the array
This array is used to display a muuri grid (Each element of the array is a muuri item)
Unfortunately, when I use the form, the new item does not behave as the rest of the items (it is just added in the container div, without any style or transformation)
is there a way to refresh the grid every time a new item is added ? So far, it is added in the DOM, but it is not affected by the Muuri gridding. Here are a few images to explain :
Before adding item :

After adding item (the item is the lamb, previous first item is hidden behind)

I tried using grid.layout() and grid.refreshItems() after adding the item, it doesn't change anything
Most helpful comment
grid.add(elements)might do the trick 馃檪