Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Carousel

Hierarchy

  • Carousel

Implements

Index

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
        • condition(): true

    Returns Carousel

Properties

Optional autoplaySpeed

autoplaySpeed: number

container

container: HTMLElement

loop

loop: boolean

Methods

dispose

  • dispose(): void

getActiveIndex

  • getActiveIndex(): number

getActiveSlide

  • getActiveSlide(): HTMLElement

getClampedIndex

  • getClampedIndex(index: number): number

getFirstSlide

  • getFirstSlide(): HTMLElement

getIndex

  • getIndex(slide: HTMLElement): number

getLastSlide

  • getLastSlide(): HTMLElement

getSlideByIndex

  • getSlideByIndex(index: number): HTMLElement

getSlideCount

  • getSlideCount(): number

getSlides

  • getSlides(): HTMLElement[]

getSlidesAfter

  • getSlidesAfter(slide: HTMLElement): HTMLElement[]

getSlidesBefore

  • getSlidesBefore(slide: HTMLElement): 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

goToSlide

  • goToSlide(targetSlide: HTMLElement, drivenBySync?: boolean): void

isBeingInteractedWith

  • isBeingInteractedWith(): boolean

isDisabled

  • isDisabled(): boolean

isEnabled

  • isEnabled(): boolean

isPaused

  • isPaused(): boolean

next

  • next(): void

off

on

pause

  • pause(): void

prev

  • prev(): void

stopTransition

  • stopTransition(): void

sync

unpause

  • unpause(): void