Banner Opengraph

Event Lightbox dragEnd

Lightbox dragEnd This event is triggered when dragging ends. Argument Type Description event object Original event object [pastacode lang=”javascript” manual=”wpgb.lightbox.on(%20’dragEnd’%2C%20function(%20event%20)%20%7B%0A%09%0A%09console.log(%20’dragEnd’%2C%20event%20)%3B%0A%0A%7D%20)%3B” message=”” highlight=”” provider=”manual”/]

Banner Opengraph

Event Lightbox open

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

Banner Opengraph

Event Facet change

Facet change This event is triggered when a facet changes and before content is refreshed. Argument Type Description slug string Facet slug values array Facet values [pastacode lang=”javascript” manual=”wpgb.facets.on(%20’change’%2C%20function(%20slug%2C%20values%20)%20%7B%20%0A%09%0A%09%2F%2F%20We%20change%20the%20price%20range%20%0A%09if%20(%20slug%20%3D%3D%3D%20’price_range’%20)%20%7B%0A%09%09this.setParams(%20slug%20%2C%20%5B10%2C%2020%5D%20)%3B%0A%09%7D%0A%0A%7D%20)%3B” message=”” highlight=”” provider=”manual”/]

Banner Opengraph

Event Carousel dragEnd

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

Banner Opengraph

Event Facet render

Facet render This event is triggered when a facet is rendered. Argument Type Description holder node Facet HTML holder [pastacode lang=”javascript” manual=”wpgb.facets.on(%20’render’%2C%20function(%20holder%20)%20%7B%0A%09%0A%09console.log(%20’render’%2C%20holder%2C%20this.facet%20)%3B%0A%0A%7D%20)%3B” message=”” highlight=”” provider=”manual”/]

Banner Opengraph

Event Carousel scroll

Carousel scroll This event is triggered when the carousel scrolls. Argument Type Description progress number How far slider has moved, from  at the first slide to  at the end positionX number Position in X axis in pixels. [pastacode lang=”javascript” manual=”wpgb.carousel.on(%20’scroll’%2C%20function(%20progress%2C%20positionX%20)%20%7B%0A%09%0A%09console.log(%20’scroll%20progress’%2C%20progress%20*%20100%20%2B%20’%25’%20)%3B%0A%0A%7D%20)%3B” message=”” highlight=”” provider=”manual”/]

Banner Opengraph

Event Grid removed

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

Banner Opengraph

Event Carousel dragMove

Carousel dragMove This event is triggered when dragging moves and the slider moves. Argument Type Description event object Original event object distance object Vector distances (x, y) of the pointer [pastacode lang=”javascript” manual=”wpgb.carousel.on(%20’dragMove’%2C%20function(%20index%2C%20distance%20)%20%7B%0A%09%0A%09console.log(%20’dragMove’%2C%20event%2C%20distance%20)%3B%0A%0A%7D%20)%3B” message=”” highlight=”” provider=”manual”/]

Banner Opengraph

Event Lightbox update

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

Banner Opengraph

Event Lightbox load

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