Fusuma

Components / Components

timeline

A timeline of (title, caption) items, the first current + 1 marked as reached.

Try it

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

Live: Data, where timeline is usedOpen full size

Also on this pagespinnerkbdratingcarouseltableline_chartarea_chartbar_chart

A timeline of (title, caption) items, the first current + 1 marked as reached.

Signature

pub const fn timeline<'a>( items: &'a [(&'a str, &'a str)], current: usize, ) -> Timeline<'a>

Example

use fusuma::timeline;
let view = timeline(&[("Ordered", "Mon"), ("Shipped", "Tue"), ("Delivered", "Thu")], 1);
let built = fusuma::doc::built::<(), _>(&view);
assert!(built.texts().contains(&"Shipped"));

All components · Source