DescriptionDescription
This event is triggered when facets are initialized before to be rendered asynchronously. Facets can be empty at this time if it was not put into cache by the plugin.
ArgumentsArguments
Argument | Type | Description |
facets | object | Holds facet ids and associated properties |
ExampleExample
JS
Grid settings – JS field
wpgb.facets.on( 'init', function( facets ) {
console.log( 'init', facets );
} );