Constructors
constructor
- new Carousel(container: HTMLElement, slides: HTMLElement[], __namedParameters?: object): Carousel
-
Parameters
-
container: HTMLElement
-
slides: HTMLElement[]
-
Default value __namedParameters: object = {}
-
activeCssClass: string
-
afterCssClass: string
-
autoplaySpeed: number
-
beforeCssClass: string
-
distanceToActiveSlideAttr: string
-
loop: boolean
-
transition: string | Transition
-
condition: function
Properties
Optional autoplaySpeed
autoplaySpeed: number
container
container: HTMLElement
Methods
getActiveSlide
- getActiveSlide(): HTMLElement
getClampedIndex
- getClampedIndex(index: number): number
-
Parameters
Returns number
getFirstSlide
- getFirstSlide(): HTMLElement
getIndex
- getIndex(slide: HTMLElement): number
-
Parameters
Returns number
getLastSlide
- getLastSlide(): HTMLElement
getSlideByIndex
- getSlideByIndex(index: number): HTMLElement
-
Parameters
Returns HTMLElement
getSlides
- getSlides(): HTMLElement[]
getSlidesAfter
- getSlidesAfter(slide: HTMLElement): HTMLElement[]
-
Parameters
Returns HTMLElement[]
getSlidesBefore
- getSlidesBefore(slide: HTMLElement): HTMLElement[]
-
Parameters
Returns HTMLElement[]
goTo
- goTo(target: number | HTMLElement, drivenBySync?: boolean): void
-
Parameters
-
target: number | HTMLElement
-
Default value drivenBySync: boolean = false
Returns void
goToIndex
- goToIndex(index: number, drivenBySync?: boolean): void
-
Parameters
-
index: number
-
Default value drivenBySync: boolean = false
Returns void
goToSlide
- goToSlide(targetSlide: HTMLElement, drivenBySync?: boolean): void
-
Parameters
-
targetSlide: HTMLElement
-
Default value drivenBySync: boolean = false
Returns void
isBeingInteractedWith
- isBeingInteractedWith(): boolean