spz-slide-indicator
When to use
spz-slide-indicator provides a dot-style navigation indicator for spz-carousel. It automatically syncs with the carousel's current slide and supports click-to-navigate.
Supported layout
container
Example
Attributes
Status attributes
CSS classes
Behavior
- On build, the component reads the carousel's slide count via
getData(). - Dot elements are dynamically created based on the slide count.
- Clicking a dot navigates the carousel to the corresponding slide via
goToSlide(). - The carousel calls
changeActive(current)on the indicator when the active slide changes. - When the number of slides exceeds
size, the visible dots window scrolls smoothly to keep the active dot in view.
Notes
- This component does not expose custom actions.
- This component does not emit custom events.
- The indicator type can be switched responsively via media query in the
typeattribute.