UNPKG

@logo-software/image-slider

Version:

Image Slider is a image viewer library for cycling through a series of images. It also includes support for previous/next controls and thumbnails.

69 lines (68 loc) 2.08 kB
/** * @license * Copyright LOGO YAZILIM SANAYİ VE TİCARET A.Ş. All Rights Reserved. * * Save to the extent permitted by law, you may not use, copy, modify, * distribute or create derivative works of this material or any part * of it without the prior written consent of LOGO YAZILIM SANAYİ VE TİCARET A.Ş. Limited. * Any reproduction of this material must contain this notice. */ import { ElementRef, EventEmitter } from '@angular/core'; import { DomSanitizer } from '@angular/platform-browser'; /** * Image Slider is a key to product showcases. With Image Slider Component you can easily add simple image gallery your page. * Add the below code to your code stack and give initializer parameters. * * <sub>app.component.html</sub> * * ```html * <logo-image-slider * [media]="items" * [texts]="captions" * (onItemChange)="sampleChangeEvent($event)" * > * </logo-image-slider> * ``` */ export declare class ImageSliderComponent { private domSanitizer; name: string; /** * Gives output when image slide changed with changing position. */ onItemChange: EventEmitter<number>; wrap: ElementRef; items: ElementRef; scroller: ElementRef; itemCount: number; pos: number; constructor(domSanitizer: DomSanitizer); private _media; get media(): string[]; /** * Import the images that will have shown at image slider. Media input will be string array. */ set media(value: string[]); private _texts; /** * Import the images' captions that will have shown on images. Text input will be string array. */ get texts(): string[]; set texts(value: string[]); sanitizer(image: string): import("@angular/platform-browser").SafeStyle; setTransform(): void; /** * Change image slider to previous image */ prev(): void; /** * Change image slider to next image */ next(): void; /** * Change image slider to selected index * @param index */ changeItem(index: number): void; move(index: number): void; }