Skip to main content

stats

Function stats 

Source
pub fn stats(cx: &Cx, stats: impl IntoIterator<Item = Stat>) -> BoxView<'_>
Expand description

A row of Stat tiles, for a Widget’s body: as many to a row as the widget’s width holds, up to three, or four when three would leave one tile alone on the last row; nothing when there is no tile.

tablo_core::stats(
    cx,
    [Stat::new("Orders", "1,204"), Stat::new("Refunds", "3")],
)