Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamically adding items #49

Open
bugproof opened this issue Oct 19, 2024 · 1 comment
Open

Dynamically adding items #49

bugproof opened this issue Oct 19, 2024 · 1 comment
Labels
question Further information is requested

Comments

@bugproof
Copy link

bugproof commented Oct 19, 2024

https://photoswipe.com/methods/#dynamically-adding-or-removing-slides

Is this feature from photo-swipe available? I'd like to lazy load some items after navigating to the last item.

@henrygd
Copy link
Owner

henrygd commented Oct 20, 2024

This is my first time ever considering this, but I think it's possible.

The items in the displayed gallery are exposed in the items property. If you reassign the items, I think it should dynamically update and maintain the current position.

I don't have time to test this atm but I can try to make a stackblitz some time this week if you want.

@henrygd henrygd added the question Further information is requested label Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants