Skip to content
This repository has been archived by the owner on Jan 29, 2022. It is now read-only.

[feat]: slide through multiple images #21

Open
SimonGolms opened this issue Feb 18, 2020 · 6 comments
Open

[feat]: slide through multiple images #21

SimonGolms opened this issue Feb 18, 2020 · 6 comments
Labels
help wanted Extra attention is needed

Comments

@SimonGolms
Copy link
Owner

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
Copy link

this feature is not working still

@adeel399
Copy link

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

@SimonGolms
Copy link
Owner Author

@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
Copy link

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
Copy link

@SimonGolms ,
It still not working for multiple images ?

@annaformaniuk
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants