SimonGolms / ngx-ionic-image-viewer

An Ionic 4 Angular component to view & zoom on images and photos without any additional dependencies.
https://ionic4-image-viewer-example.netlify.com
MIT License
131 stars 35 forks source link

[feat]: slide through multiple images #21

Open SimonGolms opened 4 years ago

SimonGolms commented 4 years ago

Feature Request

Ionic version:

[x] 4.x

Describe the Feature Request When I tap on the image, it opens up the full-screen image one at a time. Let's say there is a gallery and I want to slide through multiple images when it is in the full-screen mode.

Describe Preferred Solution The component recognizes the other ion-img-viewer elements on the side and shows the opportunity to slide to them.

Describe Alternatives Provide an array to the property of src and slide to all of the images.

Related Code

<ion-img-viewer src="['image1', 'image2', 'image3]" activeIndex="0">

or

<ion-img-viewer src="image1">
<ion-img-viewer src="image2">

Additional Context Alternative component: https://fivethree-team.github.io/ionic-4-components/gallery

adeel399 commented 3 years ago

this feature is not working still

adeel399 commented 3 years ago

i want the gallery img to open in viewer and then we can slide to next images but it does not work

SimonGolms commented 3 years ago

@adeel399 Indeed, that's basically what a feature request is all about. Since it's also labeled "help wanted", feel free to submit a relevant function enhancement.

adeel399 commented 3 years ago

For now i gave made a custom model for image viewer but ..for future u should update it for multiple image and also option to add button in header like delete etc

YaroslavG commented 3 years ago

@SimonGolms , It still not working for multiple images ?

annaformaniuk commented 2 years ago

@SimonGolms Is there any update on this? Would indeed be a very much needed feature!