ionic-team / ionic-v1

The repo for Ionic 1.x. For the latest version of Ionic, please see https://github.com/ionic-team/ionic
Other
193 stars 187 forks source link

Swiper options still not working with Ionic: when is the update? #256

Open jgw96 opened 7 years ago

jgw96 commented 7 years ago

From @1BJK903 on May 10, 2017 12:13

Hi all,

I want to use paginationType: progress, yet it's not working. Beside that: autoplay is also not working. We know that Ionic uses the old version. Could someone please help and fix this?

https://ionicframework.com/docs/api/components/slides/Slides/

Even the own documentation says it: "you can't use progress if you don't have pager = true", yet that does not work because Swiper is outdated when used in combination with Ionic.

  $scope.options = {
    autoplay: 1500,
    effect: 'coverflow',
    autoplayDisableOnInteraction: false,
    loop: false,
    pager: true,
    paginationType: 'progress',
    coverflow: {
      rotate: 50,
      stretch: 0,
      depth: 100,
      modifier: 1,
      slideShadows: true
    }
  };

How to get paginationType: "progress" and autoplay to work? @mhartington, could you help or give an update, please?

Copied from original issue: driftyco/ionic#11594

jgw96 commented 7 years ago

From @brandyscarney on May 10, 2017 20:59

What version of Ionic are you using? Seeing $scope makes me think this is v1, but the docs you linked to are for v2+.

jgw96 commented 7 years ago

From @1BJK903 on May 11, 2017 10:4

Hi there. It is indeed Ionic 1, yet autoplay always had worked before the last updates... and beside that, autoplay works when you touch the first slide manually... it suddenly starts the autoplay after you touch the first slide...

jgw96 commented 7 years ago

Hello @1BJK903 , since this is an Ionic 1 issue I am going to move this issue to our Ionic 1 repo. Thanks!

sonicwong commented 7 years ago

Have you use the updated version @ http://idangero.us/swiper?