{"id":4914,"date":"2020-06-04T10:59:27","date_gmt":"2020-06-04T10:59:27","guid":{"rendered":"https:\/\/the7kennisbank.nl\/?p=4914"},"modified":"2020-06-09T13:08:34","modified_gmt":"2020-06-09T13:08:34","slug":"lightbox-methods","status":"publish","type":"post","link":"https:\/\/the7kennisbank.nl\/en\/wp-grid-builder\/lightbox-methods\/","title":{"rendered":"Lightbox methods"},"content":{"rendered":"
\n\t
\n\t\t
\n\t\t\t
\n
\n

Lightbox methods<\/h1>\n<\/div>\n<\/div>\n
\n

This method allows to initialize the lightbox attach to a grid. It\u2019s mainly used if you destroy()<\/code> the instance. Otherwise, there isn\u2019t any reason to init()<\/code> the lightbox since it\u2019s automatically done by the plugin on load.<\/p>\n

\n

[pastacode lang=”javascript” manual=”wpgb.lightbox.init()%3B” message=”” highlight=”” provider=”manual”\/]<\/p>\n<\/div>\n

You can destroy the lightbox instance attached to grid at any time thanks to this method.<\/p>\n

\n

[pastacode lang=”javascript” manual=”wpgb.lightbox.destroy()%3B” message=”” highlight=”” provider=”manual”\/]<\/p>\n<\/div>\n

This method allows to close the lightbox when opened.<\/p>\n

\n

[pastacode lang=”javascript” manual=”wpgb.lightbox.close()%3B” message=”” highlight=”” provider=”manual”\/]<\/p>\n<\/div>\n

This method allows to resize the lightbox and its content when opened.<\/p>\n

\n

[pastacode lang=”javascript” manual=”wpgb.lightbox.resize()%3B” message=”” highlight=”” provider=”manual”\/]<\/p>\n<\/div>\n

This method allows to go to the next item when opened.<\/p>\n

\n

[pastacode lang=”javascript” manual=”wpgb.lightbox.next()%3B” message=”” highlight=”” provider=”manual”\/]<\/p>\n<\/div>\n

This method allows to go to the previous item when opened.<\/p>\n

\n

[pastacode lang=”javascript” manual=”wpgb.lightbox.previous()%3B” message=”” highlight=”” provider=”manual”\/]<\/p>\n<\/div>\n<\/div>\n\n\t\t<\/div>\n\t<\/div>\n<\/div><\/div><\/div><\/div>\n<\/div>","protected":false},"excerpt":{"rendered":"

Lightbox methods This method allows to initialize the lightbox attach to a grid. It\u2019s mainly used if you destroy() the instance. Otherwise, there isn\u2019t any reason to init() the lightbox since it\u2019s 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…<\/p>\n","protected":false},"author":2,"featured_media":4996,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[44,54,43],"tags":[],"class_list":["post-4914","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-documentation","category-js-methods","category-wp-grid-builder","category-44","category-54","category-43","description-off"],"acf":[],"_links":{"self":[{"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/posts\/4914","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/comments?post=4914"}],"version-history":[{"count":3,"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/posts\/4914\/revisions"}],"predecessor-version":[{"id":5187,"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/posts\/4914\/revisions\/5187"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/media\/4996"}],"wp:attachment":[{"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/media?parent=4914"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/categories?post=4914"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/the7kennisbank.nl\/en\/wp-json\/wp\/v2\/tags?post=4914"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}