1.2.0 • Published 3 years ago

ng-simple-carousel v1.2.0

Weekly downloads
291
License
Apache-2.0
Repository
github
Last release
3 years ago

ng-simple-carousel

A carousel component made with Angular 10. No other dependencies. Focus on simple functionality, allowing easy-customize. Responsive and mobile-frindly.

Demo

You can check samples from here

Install

npm i ng-simple-carousel

APIs

NgSimpleCarouselComponent

NameType
@InputcontrollerCarouselControllerClass used to change component state programatically
@InputimagesCarouselImage[ ]Information of images on the slides
@InputobjectFit"contain" | "cover"Set css object-fit property. Default is contain
@OutputimgChangeEventEmitterId of image emitted when active image is changed

NgSimpleCarouselWithButtonComponent

NameType
@InputcontrollerCarouselControllerClass used to change component state programatically
@InputimagesCarouselImage[ ]Information of images on the slides
@InputobjectFit"contain" | "cover"Set css object-fit property. Default is contain
@OutputimgChangeEventEmitterId of image emitted when active image is changed

NgSimpleCarouselComponentWithDots

NameType
@InputcontrollerCarouselControllerClass used to change component state programatically
@InputimagesCarouselImage[ ]Information of images on the slides
@InputobjectFit"contain" | "cover"Set css object-fit property. Default is contain
@OutputimgChangeEventEmitterId of image emitted when active image is changed

CarouselController

NameArg
jumpTo()idJump to the image of specified id
prev()---Go to previous image
next()---Go to next image

CarouselImage

NameType
idstringrequired
srcstringrequired
srcsetstring
sizesstring
altstring
sourcesCarouselImageSource [ ]

CarouselImageSource

NameType
srcsetstringrequired
typestring
sizesstring
1.2.0

3 years ago

1.1.0

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.6

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago