You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 9, 2023. It is now read-only.
would be awesome if you can add a thumbs property so that I can define thumbnails instead of full images.
Hi @Head , I think you're absolutely right and I also had something in mind. Thanks for the hint. At the moment I'm busy with other projects but will come back to this problem asap.
From my understanding, the library already has most of the support required for implementing this.
Prop images accepts an array of strings as well as an array of objects and will use the value of url for displaying the image and thumbnails. I suggest a new property thumb inside each image object. The full image will be shown based on url property and if thumb property is present, it will be used for thumbnails else the url property will be used. Please let me know if you are thinking of a better approach and I would be open to raising a PR for this issue.
thumbs: [ 'path to thumbnail1, 'path to thumbnail2, ],
In case you want to add alt text to your thumbnails, but for some reason you don't see the thumbnail ( get an [object Object] for src instead of the image path, you'll need to change the HTML code a little bit.
Hi,
would be awesome if you can add a
thumbs
property so that I can define thumbnails instead of full images.The text was updated successfully, but these errors were encountered: