[4.0.0-4c.0] Provide full Swiper API
See original GitHub issueFeature Request
Ionic version:
[x] 4.0.0-rc.0
Describe the Feature Request
<ion-slides>
is based on http://idangero.us/swiper/api, but do not implement all features (swipe effects other than slides, parallax, etc.). Mixing Swiper with Ionic lead to problems (and duplicate code).
Giving access to the entire Swiper component power would be awesome.
Describe Preferred Solution
As Swiper is modular, would be nice to have some way to import features on <ion-slides>
, for example:
import SwiperParallax from "somewhere";
IonSlidesHTMLElement.modules = [SwiperParallax];
Or, at least, give access to the complete Swiper API (i.e.: make effect, parallax, etc. to work)
Describe Alternatives
No alternatives found, as importing Swiper seems to have side-effects on <ion-slides>
.
Additional Context
Link to the original component: http://idangero.us/swiper/api Link to the documentation: https://beta.ionicframework.com/docs/api/slides (it says it adopted the above library, but I think the build process have removed some features, as they can be optional)
Issue Analytics
- State:
- Created 5 years ago
- Reactions:6
- Comments:9 (4 by maintainers)
Top GitHub Comments
Thanks for the issue! To make it easier for everyone, we decided to expose the full Swiper API via a new
getSwiper
method inion-slides
. This will be available in the next stable release of Ionic.I have released a dev build if anyone would like to try this out and provide feedback:
If using Angular:
npm i @ionic/angular@4.9.0-dev.201908271629.e1fa461
If using Ionic Core:npm i @ionic/core@4.9.0-dev.201908271629.e1fa461
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.