Skip to main content

calendar

Function calendar 

Source
pub fn calendar<E: Serialize>(
    year: u32,
    month: u8,
    selected: Option<u8>,
    on_day: impl Fn(u8) -> E,
) -> Widget
Expand description

An inline month calendar for year/month (1–12), US English (Sunday-first). on_day(d) builds the tap event for each day d; selected highlights a day. See calendar_in for a localized calendar with per-day markers.