kvision / pl.treksoft.kvision.onsenui.carousel / Carousel / <init>

<init>

(js) Carousel(direction: CarouselDirection? = null, fullscreen: Boolean? = null, overscrollable: Boolean? = null, autoScroll: Boolean? = null, animation: Boolean? = null, swipeable: Boolean? = null, initialIndex: Int? = null, classes: Set<String> = setOf(), init: (Carousel.() -> Unit)? = null)

Creates a carousel component.

Parameters

direction - a carousel direction

fullscreen - whether the carousel should fill the whole screen

overscrollable - whether the carousel should scroll past first and last items

autoScroll - whether the carousel will be automatically scrolled to the closest item border

animation - determines if the transitions are animated

swipeable - determines if the carousel can be scrolled by drag or swipe

classes - a set of CSS class names

init - an initializer extension function

Constructor
Creates a carousel component.