Event facet refresh

Description#Description This event is triggered before facets are refreshed. Example#Example [pastacode lang=”javascript” manual=”wpgb.facets.on(%20’refresh’%2C%20function()%20%7B%0A%0A%09console.log(%20’refresh’%2C%20this.facets%20)%3B%0A%0A%7D%20)%3B” message=”” highlight=”” provider=”manual”/]

Banner Opengraph

Event Grid layout

Grid layout This event is triggered after grid items are lay out. Argument Type Description items array Hold grid items [pastacode lang=”javascript” manual=”wpgb.grid.on(%20’layout’%2C%20function(%20items%20)%20%7B%0A%09%0A%09console.log(%20’layout’%2C%20items%20)%3B%0A%0A%7D%20)%3B” message=”” highlight=”” provider=”manual”/]

Banner Opengraph

Event Lightbox loaded

Lightbox loaded This event is triggered when the lightbox item is loaded. Argument Type Description item node Node opened in the lightbox [pastacode lang=”javascript” manual=”wpgb.lightbox.on(%20’loaded’%2C%20function(%20item%20)%20%7B%0A%09%0A%09console.log(%20’loaded’%2C%20item%20)%3B%0A%0A%7D%20)%3B” message=”” highlight=”” provider=”manual”/]

Banner Opengraph

Event Carousel change

Carousel change This event is triggered when a slide is selected. Argument Type Description index number Selected slide index [pastacode lang=”javascript” manual=”wpgb.carousel.on(%20’change’%2C%20function(%20index%20)%20%7B%0A%09%0A%09console.log(%20’selected%20slide’%2C%20index%20)%3B%0A%0A%7D%20)%3B” message=”” highlight=”” provider=”manual”/]

Banner Opengraph

Event Carousel dragStart

Carousel dragStart This event is triggered when draging starts and slider starts scrolling. Argument Type Description event object Original event object [pastacode lang=”javascript” manual=”wpgb.carousel.on(%20’dragStart’%2C%20function(%20index%20)%20%7B%0A%09%0A%09console.log(%20’dragStart’%2C%20event%20)%3B%0A%0A%7D%20)%3B” message=”” highlight=”” provider=”manual”/]

Banner Opengraph

Event Lightbox close

Lightbox close This event is triggered before the lightbox closes. Argument Type Description item node Node opened in the lightbox [pastacode lang=”javascript” manual=”wpgb.lightbox.on(%20’close’%2C%20function(%20item%20)%20%7B%0A%09%0A%09console.log(%20’close’%2C%20item%20)%3B%0A%0A%7D%20)%3B” message=”” highlight=”” provider=”manual”/]

Banner Opengraph

Event Facet reset

Facet reset This event is triggered before facets are reset. Argument Type Description facets array Holds facet slug(s) to reset [pastacode lang=”javascript” manual=”wpgb.facets.on(%20’reset’%2C%20function(%20facets%20)%20%7B%20%0A%09%0A%09console.log(%20’reset’%2C%20facets%20)%3B%0A%0A%7D%20)%3B” message=”” highlight=”” provider=”manual”/]

Banner Opengraph

Event Facet loaded

Facet loaded This event is triggered when all facets are rendered. Argument Type Description facets object Holds facet ids and associated HTML properties [pastacode lang=”javascript” manual=”wpgb.facets.on(%20’loaded’%2C%20function(%20facets%20)%20%7B%0A%09%0A%09%09console.log(%20’loaded’%2C%20facets%20)%3B%0A%0A%7D%20)%3B” message=”” highlight=”” provider=”manual”/]

Banner Opengraph

Event Facet init

Facet init 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. Argument Type Description facets object Holds facet ids and associated properties [pastacode lang=”javascript” manual=”wpgb.facets.on(%20’init’%2C%20function(%20facets%20)%20%7B%0A%09%0A%09console.log(%20’init’%2C%20facets%20)%3B%0A%0A%7D%20)%3B” message=”” highlight=”” provider=”manual”/]

Banner Opengraph

Event Grid added

Grid added This event is triggered after grid items are added and lay out in a grid. Argument Type Description items array Hold grid items [pastacode lang=”javascript” manual=”wpgb.grid.on(%20’added’%2C%20function(%20items%20)%20%7B%0A%09%0A%09console.log(%20’added’%2C%20items%20)%3B%0A%0A%7D%20)%3B” message=”” highlight=”” provider=”manual”/]