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 Apr 9, 2016
1 parent ecf9302 commit a6091bd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ionic/components/slides/slides.ts
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,13 @@ export class Slides extends Ion {
});
}

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

/**
* @private
*/
Expand Down
1 change: 1 addition & 0 deletions ionic/components/slides/swiper-widget.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ export declare class Swiper {
update(): any;
slideNext(): any;
slidePrev(): any;
slideTo(slideIndex: number, speed: number, runCallbacks: boolean);
}

0 comments on commit a6091bd

Please sign in to comment.