Fusuma

Components / Components

page_dots

Dots for count pages with current marked.

Try it

This is the Agent grid page of the gallery, running in your browser: page_dots is on it, and it is the real widget. Press Run, then use it.

Live: Agent grid, where page_dots is usedOpen full size

Dots for count pages with current marked.

The dots of a pager or a carousel: one for each page, the current one filled.

Signature

pub const fn page_dots(count: usize, current: usize) -> PageDots

Example

use fusuma::page_dots;
let view = page_dots(5, 2);
let built = fusuma::doc::built::<(), _>(&view);
assert_eq!(built.nodes(), 6, "a row and its five dots");

All components · Source