This carousel can be configured using data attributes on the root .al-carousel element. Edit via the Etch Attributes Bar (Cmd+K) or HTML Panel.
| Attribute | Default | Description |
|---|---|---|
data-show-dots |
true |
Show/hide pagination dots |
data-show-arrows |
true |
Show/hide navigation arrows (hidden on mobile via CSS) |
<!-- Default: dots and arrows visible -->
data-show-dots="true" data-show-arrows="true"
<!-- Hide dots, show arrows -->
data-show-dots="false" data-show-arrows="true"
<!-- Show dots, hide arrows -->
data-show-dots="true" data-show-arrows="false"
<!-- Hide both (swipe/drag only) -->
data-show-dots="false" data-show-arrows="false"
When using this as a reusable component, bind data attributes to props:
<!-- In component attributes -->
data-show-dots="{prop.showDots}"
data-show-arrows="{prop.showArrows}"
<!-- Props definition -->
showDots: boolean (default: true)
showArrows: boolean (default: true)
Then when placing the component, set props in the Properties panel:
showDots: true
showArrows: false