mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 13:32:54 +08:00
Merge pull request #5491 from teleaziz/slide-to-index
feat(slides): add ability to slide to specific index
This commit is contained in:
@ -626,6 +626,13 @@ export class Slides extends Ion {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
|
slideTo(slideIndex: number, speed: number, runCallbacks: boolean) {
|
||||||
|
this.slider.slideTo(slideIndex, speed, runCallbacks);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @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;
|
update(): any;
|
||||||
slideNext(): any;
|
slideNext(): any;
|
||||||
slidePrev(): any;
|
slidePrev(): any;
|
||||||
|
slideTo(slideIndex: number, speed: number, runCallbacks: boolean);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user