Lightbox methods
This method allows to initialize the lightbox attach to a grid. It’s mainly used if you destroy()
the instance. Otherwise, there isn’t any reason to init()
the lightbox since it’s automatically done by the plugin on load.
[pastacode lang=”javascript” manual=”wpgb.lightbox.init()%3B” message=”” highlight=”” provider=”manual”/]
You can destroy the lightbox instance attached to grid at any time thanks to this method.
[pastacode lang=”javascript” manual=”wpgb.lightbox.destroy()%3B” message=”” highlight=”” provider=”manual”/]
This method allows to close the lightbox when opened.
[pastacode lang=”javascript” manual=”wpgb.lightbox.close()%3B” message=”” highlight=”” provider=”manual”/]
This method allows to resize the lightbox and its content when opened.
[pastacode lang=”javascript” manual=”wpgb.lightbox.resize()%3B” message=”” highlight=”” provider=”manual”/]
This method allows to go to the next item when opened.
[pastacode lang=”javascript” manual=”wpgb.lightbox.next()%3B” message=”” highlight=”” provider=”manual”/]
This method allows to go to the previous item when opened.
[pastacode lang=”javascript” manual=”wpgb.lightbox.previous()%3B” message=”” highlight=”” provider=”manual”/]