attila / savvior

A Salvattore and Masonry alternative without CSS-driven configuration or absolute CSS positioning

Home Page:http://savvior.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

When is savvior done ?

wirmachenbunt opened this issue · comments

is there a way to figure out when savvior is finished so i can trigger some js library after savvior ?

In the current version an event called savvior:setup is dispatched on window. The event object contains more information on the grid being set up, i.e:

window.addEventListener('savvior:setup', function(e) {
  console.log(e.detail); // Outputs: { element: [Element], columns: [Number], filter: [Grid.filter] }
});

Hope that helps.

hey cheers for the quick answer