-
-
Notifications
You must be signed in to change notification settings - Fork 32
Image viewers
Charles de Beauchesne edited this page May 5, 2020
·
1 revision
There is two kind of image viewers
The thumbnail image is a regular Vue component : Gallery. You must declare it and instantiate it in your component.
It's used to show list of associated images, or any list of images (for instance, dashboard). When user clicks on a thumbnail, it calls the fullscreen viewer :
The fullscreen image viewer is a singleton instance of ImageViewer component. It's declared on App.vue and accessible everywhere with $imageViewer
. the typical usage is to call imageViewer.show(image)
where image
is an image C2C document.
Important point, the fullscreen viewer will collect all visible image on a page, and will allow user to navigate threw all of them.
- 🏠 Home
- 📋 Changelog
- 🛠️ Dev environment
- 🎉 Resolving issues
- 🤖 CI/CD
- 📝 Tech docs
- 🎓 Courses
- 🤓 Admin