Skip to content

Commit

Permalink
Merge pull request #5491 from teleaziz/slide-to-index
Browse files Browse the repository at this point in the history
feat(slides): add ability to slide to specific index
  • Loading branch information
brandyscarney committed Apr 18, 2016
2 parents 58570f2 + a6091bd commit 17f9465
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 @@ -626,6 +626,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 17f9465

Please sign in to comment.