Pretty Slider/Slideshow For Angular 4+ – NgSimpleSlideshow

Author: dockleryxk
Official Page: Go to website
Publish Date: December 13, 2017
License: MIT

Description:

NgSimpleSlideshow is a simple, elegant slider and slideshow component for Angular 4+ app.

Installation:

# NPM
$ npm install ng-simple-slideshow --save

Usage:

Import the NgSimpleSlideshow into your module.

import {SlideshowModule} from 'ng-simple-slideshow';

@NgModule({
  imports: [
    SlideshowModule,
  ],
  declarations: [
  ],
  exports: [
  ]
})

In your app.

<slideshow [imageUrls]="imageUrlArray"></slideshow>

Options.

@Input() imageUrls: string[];
@Input() height: string;
@Input() minHeight: string;
@Input() arrowSize: string;
@Input() showArrows: boolean = true;
@Input() disableSwiping: boolean = false;
@Input() autoPlay: boolean = false;
@Input() autoPlayInterval: number = 3333;
@Input() stopAutoPlayOnSlide: boolean = true;
@Input() debug: boolean = false;

Events.

@Output('onSlideLeft') public onSlideLeft = new EventEmitter<number>();
@Output('onSlideRight') public onSlideRight = new EventEmitter<number>();
@Output('onSwipeLeft') public onSwipeLeft = new EventEmitter<number>();
@Output('onSwipeRight') public onSwipeRight = new EventEmitter<number>();

Preview:

NgSimpleSlideshow


You Might Be Interested In:

Add Comment