HIDE

JS Hook for Facet and Grid

This event is triggered after the facet performs the filtering action

 

wp.hooks.addAction(‘piotnetgrid-grid-loaded’, ‘piotnetgrid’, function(grids){

console.log( ‘grids’, grids ); // do_something

});

wp.hooks.addAction(‘piotnetgrid-facet-loaded’, ‘piotnetgrid’, function(facets){

console.log( ‘facets’, facets ); // do_something

});