ng2-custom-carousel
Version:
Carousel Component for Angular 2+. Easily customizable, with autoscroll, loop and navigation controls
49 lines (48 loc) • 2.2 kB
TypeScript
import { AfterViewInit, QueryList, AfterContentInit, OnDestroy } from '@angular/core';
import { Ng2CustomCarouselItemDirective } from './ng2-custom-carousel-item.directive';
import { AnimationBuilder } from '@angular/animations';
import * as i0 from "@angular/core";
export declare class Ng2CustomCarouselItemElement {
static ɵfac: i0.ɵɵFactoryDeclaration<Ng2CustomCarouselItemElement, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<Ng2CustomCarouselItemElement, ".ng2-custom-carousel-item", never, {}, {}, never, never, false>;
}
export declare class Ng2CustomCarouselComponent implements AfterViewInit, AfterContentInit, OnDestroy {
private builder;
constructor(builder: AnimationBuilder);
get currentSlideString(): string;
set currentSlideString(index: string);
items: QueryList<Ng2CustomCarouselItemDirective>;
private itemsElements;
private ng2CustomCarousel;
private ng2CustomCarouselCover;
timing: string;
showControls: boolean;
showNavigation: string;
autoScroll: number;
loop: boolean;
slidesN: number;
scrollDirection: string;
slidesMargin: number;
private player;
private playerRestart;
private playerReend;
private itemWidth;
currentSlide: number;
currentSlideShown: number;
ng2CustomCarouselWrapperStyle: {};
navigationIndexes: number[];
private intervalTransition;
private scrollLimit;
onResize(): void;
goToSlide(indexSlider: number): void;
private buildAnimation;
private buildAnimationStart;
private buildAnimationEnd;
stopScrool(): void;
startScroll(): void;
ngAfterContentInit(): void;
ngAfterViewInit(): void;
ngOnDestroy(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<Ng2CustomCarouselComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<Ng2CustomCarouselComponent, "ng2-custom-carousel", never, { "timing": "timing"; "showControls": "showControls"; "showNavigation": "showNavigation"; "autoScroll": "autoScroll"; "loop": "loop"; "slidesN": "slidesN"; "scrollDirection": "scrollDirection"; "slidesMargin": "slidesMargin"; }, {}, ["items"], never, false>;
}