1# llimphi-widget-carousel23Paged pager.
45A view that shows N pages one at a time, with **indicator dots** at the bottom
6(clickable, to jump to page *i*) and **optional arrows** on the sides. The caller
7keeps a single `current_index: usize` in its model and receives `on_change(i)`
8when the user changes page.
910v1 has **no swipe** — navigation goes through dots and arrows. A v2 can add
11horizontal swipe using `View::draggable_velocity` + `fling_step` for
12snap-on-release (the seam already exists; adding it is composition).
1314Pure helpers for wrapping and clamping the index (`wrap_index`, `clamp_index`)
15— useful in the caller's `update` (arrows at the ends may wrap or stay put).
1617---
1819Part of **llimphi** — see [llimphi](../../README.md).
README.md
llimphi-widget-carousel
Paged pager.
A view that shows N pages one at a time, with indicator dots at the bottom
(clickable, to jump to page i) and optional arrows on the sides. The caller
keeps a single current_index: usize in its model and receives on_change(i)
when the user changes page.
v1 has no swipe — navigation goes through dots and arrows. A v2 can add
horizontal swipe using View::draggable_velocity + fling_step for
snap-on-release (the seam already exists; adding it is composition).
Pure helpers for wrapping and clamping the index (wrap_index, clamp_index)
— useful in the caller's update (arrows at the ends may wrap or stay put).