Skip to content

question about usage in chat apps #1123

Discussion options

You must be logged in to vote

Hey @Ahmed-Elrayes,

Sorry for the delayed response, I forgot to check the discussion section.

You can just need to call the refresh() method once a new photo or video is added
Docs - https://www.lightgalleryjs.com/docs/methods/#refresh
Demo - https://www.lightgalleryjs.com/demos/infinite-scrolling/

If you want to make it more dynamic, you can try using dynamic mode and refresh it, and open using openGallery when the user clicks on any image

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Ahmed-Elrayes
Comment options

@sachinchoolur
Comment options

@Ahmed-Elrayes
Comment options

Answer selected by Ahmed-Elrayes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants