A proxy instance between carousel and a feature. Restricts the access for features to the carousel instance.

Implements

Constructors

Accessors

Methods

Constructors

  • Creates an instance of the proxy.

    Parameters

    • instance: ICarousel

      the carousel instance to proxy the access to.

    • features: IFeature[]

      all the features that should access the carousel through this instance.

    Returns Proxy

Accessors

  • get el(): Element
  • Proxies the Carousel.el | el getter of the carousel.

    Returns Element

  • get id(): string
  • Proxies the Carousel.id | id getter of the carousel.

    Returns string

  • get index(): Index
  • Proxies the Carousel.index | index getter of the carousel.

    Returns Index

  • set index(value): void
  • Proxies the Carousel.index | index setter of the carousel.

    Parameters

    Returns void

  • get items(): HTMLElement[]
  • Proxies the Carousel.items | items getter of the carousel.

    Returns HTMLElement[]

  • get mask(): null | Element
  • Proxies the Carousel.mask | mask getter of the carousel.

    Returns null | Element

  • get pageIndex(): number
  • Proxies the Carousel.pagesIndex | pagesIndex getter of the carousel.

    Returns number

  • get pages(): Pages
  • Proxies the Carousel.pages | pages getter of the carousel.

    Returns Pages

Methods

  • Function to trigger an update from a feature. This will send an update to the carousel instance and all other attached features exept the sender.

    Parameters

    • sender: IFeature

      feature that triggers the update.

    Returns void