ECarousel Carousel
Examples
Card carousel, hover pause and named slides
Carousel
Properties
arrowstringVisibility policy for the carousel arrows.
"always" / "hover""never"
"always"autoplayboolAdvance carousel items automatically.
truecardScalerealScale of inactive cards in card-style carousels.
Effective value is clamped to 0.1–1
0.83currentIndexaliasIndex of the current selected or displayed item.
-1: no selection
0 and above: item index
Alias: slides.currentIndexdelegateComponentCarousel content delegate exposing index and modelData.
defaultSlidedirectionstringComponent layout direction.
"horizontal" / "vertical"
"horizontal"enabledboolAllow interaction; false disables the control.
trueheightrealComponent size in pixels; may be bound to its parent layout.
implicitHeightindicatorPositionstringPosition of the carousel indicators.
"inside" / "outside""none"
"inside"initialIndexintInitially displayed item index, starting at 0.
0interactiveboolAllow mouse and keyboard interaction with the carousel.
trueintervalintCarousel auto-advance interval in milliseconds.
3000loopboolWrap carousel navigation between its first and last items.
truemodelvarArray of image URLs or carousel item objects.
Fields:
name, label, source
[]motionBlurboolEnable motion blur during carousel transitions.
falsepauseOnHoverboolPause auto-advance or the close timer while hovered.
truetriggerstringInteraction that activates the action.
"click" / "hover"
"click"typestringPresentation style of the carousel items.
"default" / "card"
"default"visibleboolWhether the component is visible.
truewidthrealComponent size in pixels; may be bound to its parent layout.
implicitWidthcountintRead onlySkeleton instance count or current item count, depending on the component.
Computed at runtimehasLabelsboolRead onlyWhether carousel data provides indicator labels.
Computed at runtimeSignals
changed(int index)Emitted when the active slide changes; index is the new slide index.
indexChanged(int index, int previousIndex)Emitted when slides change; index is the new index and previousIndex is the old index.
Methods
next()Move to the next item or step.
previous()Move to the previous item or step.
setActiveItem(value)Activate the item specified by value or index.
setCurrentIndex(index)Switch to the carousel slide at index.