
LightGallery is available on NPM, Yarn, Bower, CDNs, and GitHub.
#Destroy lightgallery code#

In case if you want to re-initialize lightGallery right after destroying it, initialize it only once the destroy process is completed. Returns the time takes to completely close and destroy the instance. This method also calls CloseGallery function internally.
#Destroy lightgallery install#
Yarn yarn add lightgallery.js Bower bower install lightgallery.js -save CDN Download from GitHub You can also directly download lightgallery from GitHub. When an image is opened in LightGallery, you can simply double-click on the image file to see its actual size (resolution). I cant destroy the lightgallery, Im using lightGallery(). To quickly switch between images, simply hover the mouse cursor on thumbnails and then rotate the mouse wheel (scroll wheel). An array of objects ( src, iframe, subHtml, thumb, poster, responsive, srcset sizes) representing gallery elements. npm install lightgallery.js You can also find lightgallery.js on Yarn and Bower. The thumbnails can be turned off if and when required by clicking the thumbnail icon. LightGallery can be instantiated and launched programmatically by setting this option to true and populating dynamicEl option (see below) with the definitions of images. I am sharing one component's lightgallery code.LightGallery is a lightweight, modular, JavaScript library for creating beautiful image & video galleries for the web and the mobile. You can install lightgallery.js using the npm package manager. I want to clear all the lightgallery data on ngDestroy() so that it doesn't interfere on componentTwo.īoth the component's codes are same. Note : unitPlanslightGallery is the class or id on which we are applying the light gallery. In short, componentTwo also records the componentOne like data. Write down the below mention script on ajax success.

In lightgallery there is option to hit like for the current zoomed image, When we are on componentOne and hit like button, it inserts the "db table" image like's data correctly, but when we navigate to componentTwo and hit like on image, then it records two entry, One entry belongs to componentOne and other entry of componentTwo

there seemed to be some functionality, but it looked like the lightbox lost some styling and wasn't opaque any more.
(Mindscape)[!]-1.png)
I have two angular component which is using lightGallery this one : ('.dlCmscCarousel').data('lightGallery').destroy(true) before, but that messed up. I am using angular 6 with laravel 5.2 as backend.
