Acceptable Carousel properties

Note that some properties are inherited from other sets.

Hierarchy

Properties

adaptiveHeight?: boolean

The component's height adjusts automatically according to the element's height.

afterChange?: ((currentSlide) => void)

Type declaration

    • (currentSlide): void
    • Function to be called after slid change

      Parameters

      • currentSlide: number

        current slide index

      Returns void

      nothing

autoplay?: boolean

Enables automatic slide transition

autoplaySpeed?: number

Transition Speed

beforeChange?: ((currentSlide, nextSlide) => void)

Type declaration

    • (currentSlide, nextSlide): void
    • Function to be called before slide change

      Parameters

      • currentSlide: number

        slide index number

      • nextSlide: number

        next slid index number

      Returns void

      nothing

centerMode?: boolean

Sets centralized mode

draggable?: boolean

Allows to drag slides

id?: string

"Fills the ID of the element (not very practical)."

Example:

 <View id="id" />
infinite?: boolean

Enables circular rotation of slides

initialSlide?: number

Initial slide number

slidesToScroll?: number

Number of slides to be changed

slidesToShow?: number

number of slides per page to show

speed?: number

Sets slide transition speed

swipe?: boolean

Enables swipe

swipeEvent?: ((swipeDirection, event) => void)

Type declaration

    • (swipeDirection, event): void
    • Function to be called when a slide has changed

      Parameters

      • swipeDirection: "left" | "right" | "downLeft" | "upLeft" | "downRight" | "upRight"

        Direction of swipe

      • event: SyntheticEvent<Element, Event>

        swipe event

      Returns void

      nothing

transform?: string

"Prepare a position transforming of element"

Example:

 <View transform="rotate(45deg)" />
transition?: string

"Prepare a transition of visual state change"

Example:

 <View transition="background-color 0.5s ease-in-out" />
variableWidth?: boolean

Sets the slide inner element width to adjust width

visualState?: "success" | "danger" | "warning"

"Determines the visual state of the component and its children."

Example:

 <View visualState="success" />