feat(slides): add method to get previous index

Slides added method wrapper: `getPreviousIndex()`

references #5508
This commit is contained in:
Brandy Carney
2016-04-19 20:07:21 -04:00
parent 28cb089677
commit a54361cf2e
4 changed files with 21 additions and 3 deletions

View File

@ -827,6 +827,15 @@ export class Slides extends Ion {
return this.slider.activeIndex;
}
/**
* Get the index of the previous slide.
*
* @returns {number} The index number of the previous slide.
*/
getPreviousIndex(): number {
return this.slider.previousIndex;
}
/**
* Get the total number of slides.
*