mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-21 04:53:58 +08:00
feat(slides): add ability to slide to specific index
This commit is contained in:
@ -606,6 +606,13 @@ export class Slides extends Ion {
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
slideTo(slideIndex: number, speed: number, runCallbacks: boolean) {
|
||||
this.slider.slideTo(slideIndex, speed, runCallbacks);
|
||||
}
|
||||
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
|
1
ionic/components/slides/swiper-widget.d.ts
vendored
1
ionic/components/slides/swiper-widget.d.ts
vendored
@ -8,4 +8,5 @@ export declare class Swiper {
|
||||
update(): any;
|
||||
slideNext(): any;
|
||||
slidePrev(): any;
|
||||
slideTo(slideIndex: number, speed: number, runCallbacks: boolean);
|
||||
}
|
||||
|
Reference in New Issue
Block a user