Import
import { NuiCarousel, NuiCarouselSlide } from '@needless-ui/angular/carousel';NuiCarousel
A carousel of slides.
| Name | Type | Default | Description |
|---|---|---|---|
labelInput | string | Names the carousel. | |
indexTwo-way | number | 0 | The first slide in view, from 0. |
perViewInput | number | 'auto' | 1 | Slides in view at once, or auto for slides that set their own width. |
gapInput | string | '1rem' | Room between slides, as any CSS length. |
loopInput | boolean | false | Going past the last slide comes back to the first, and the other way round. |
autoplayInput | number (ms) | 0 | Milliseconds between slides when it turns by itself; 0 doesn’t. |
controls, indicatorsInput | boolean | true | The previous and next buttons, and the dots. |
labelsInput | Partial<NuiCarouselLabels> | Every text it says, to translate. | |
next, previousMethod | () => void | Moves one slide on or back. | |
goToMethod | (index: number) => void | Brings a slide into view. |
NuiCarouselSlide
A slide.
| Name | Type | Default | Description |
|---|---|---|---|
nuiCarouselSlideInput | string | Its title, read instead of its position. |