UNPKG

ngx-slick-carousel

Version:

[![npm version](https://badge.fury.io/js/ngx-slick-carousel.svg)](https://badge.fury.io/js/ngx-slick-carousel) [![Build Status](https://travis-ci.com/leo6104/ngx-slick-carousel.svg?branch=master)](https://travis-ci.com/leo6104/ngx-slick-carousel)

80 lines (79 loc) 2 kB
import { AfterViewChecked, AfterViewInit, ElementRef, EventEmitter, NgZone, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core'; /** * Slick component */ export declare class SlickCarouselComponent implements OnDestroy, OnChanges, AfterViewInit, AfterViewChecked { private el; private zone; private platformId; config: any; afterChange: EventEmitter<{ event: any; slick: any; currentSlide: number; first: boolean; last: boolean; }>; beforeChange: EventEmitter<{ event: any; slick: any; currentSlide: number; nextSlide: number; }>; breakpoint: EventEmitter<{ event: any; slick: any; breakpoint: any; }>; destroy: EventEmitter<{ event: any; slick: any; }>; init: EventEmitter<{ event: any; slick: any; }>; $instance: any; private currentIndex; slides: any[]; initialized: boolean; private _removedSlides; private _addedSlides; /** * Constructor */ constructor(el: ElementRef, zone: NgZone, platformId: string); /** * On component destroy */ ngOnDestroy(): void; ngAfterViewInit(): void; /** * On component view checked */ ngAfterViewChecked(): void; /** * init slick */ initSlick(): void; addSlide(slickItem: SlickItemDirective): void; removeSlide(slickItem: SlickItemDirective): void; /** * Slick Method */ slickGoTo(index: number): void; slickNext(): void; slickPrev(): void; slickPause(): void; slickPlay(): void; unslick(): void; ngOnChanges(changes: SimpleChanges): void; } export declare class SlickItemDirective implements OnInit, OnDestroy { el: ElementRef; private platformId; private carousel; constructor(el: ElementRef, platformId: string, carousel: SlickCarouselComponent); ngOnInit(): void; ngOnDestroy(): void; }