Skip to content

Commit

Permalink
feat(slides): add ability to slide to specific index
Browse files Browse the repository at this point in the history
  • Loading branch information
teleaziz committed Feb 17, 2016
1 parent ae17e7f commit cfc96d2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
7 changes: 7 additions & 0 deletions ionic/components/slides/slides.ts
Original file line number Diff line number Diff line change
Expand Up @@ -629,6 +629,13 @@ export class Slides extends Ion {
});
}

/**
* @private
*/
slideTo(slideIndex: number, speed: number, runCallbacks: boolean) {
this.slider.slideTo(slideIndex, speed, runCallbacks);
}

/**
* @private
*/
Expand Down
5 changes: 3 additions & 2 deletions ionic/components/slides/swiper-widget.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ export declare class Swiper {
activeIndex: number;
isEnd: boolean;
isBeginning: boolean;

update();
slideNext();
slidePrev();
slideTo(slideIndex: number, speed: number, runCallbacks: boolean);

}
}

0 comments on commit cfc96d2

Please sign in to comment.