bug: Swiper Controller module doesn't work on IonSlides
See original GitHub issueBug Report
Ionic version:
[x] 5.0.0
Current behavior:
In order to get one slider to control another, I pass the instance of the slider to be controlled to the controlling slider according to the Swiper API docs. This has no effect.
Expected behavior:
The controlled slider should change as the controlling slider is changed.
Steps to reproduce:
See the example project in the Github repo I created: https://github.com/alex-steinberg/ion-slides-no-controller
Related code:
sliderOpts: any = {
controller: {
control: <swiper instance>
}
}
Other information:
Ionic info:
Ionic:
Ionic CLI : 6.4.1 (/Users/<my-user>/.nvm/versions/node/v12.16.1/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 5.0.7
@angular-devkit/build-angular : 0.901.1
@angular-devkit/schematics : 9.0.7
@angular/cli : 9.0.7
@ionic/angular-toolkit : 2.2.0
Utility:
cordova-res (update available: 0.12.1) : 0.11.0
native-run (update available: 1.0.0) : 0.3.0
System:
NodeJS : v12.16.1 (/Users/<my-user>/.nvm/versions/node/v12.16.1/bin/node)
npm : 6.13.4
OS : macOS Catalina
Issue Analytics
- State:
- Created 3 years ago
- Reactions:4
- Comments:7 (1 by maintainers)
Top Results From Across the Web
bug: Swiper Controller module doesn't work on IonSlides ...
Bug Report Ionic version: [x] 5.0.0 Current behavior: In order to get one slider to control another, I pass the instance of the...
Read more >How to use Swiper with Ionic (instead of ion-slides) - YouTube
In this video we will implement the Swiper component without ion - slides, since it will be deprecated with Framework v6! ...
Read more >Error 'swiper-slide' is not a known element after migrating from ...
I have tried changing the config option of the slider but it's the same. As per the ionic document I have imported @import...
Read more >nolimits4web/Swiper - Gitter
I'm using swiper in angular but it is not functional I imported SwiperModule to my module and Installed the modules as: SwiperCore.use([EffectCoverflow, ...
Read more >swiper go to slide index | The AI Search Engine You Control
With swiper.activeIndex you are accessing the virtual slides, just use swiper.realIndex for the real index. Open side panel.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Appears to be totally ignored.
Would be great to see the Virtual module included here too!