use ui::date::{self, Calendar, CalendarEvent, Date};
date::init(cx); // once, at startup
let picker = cx.new(|cx| Calendar::new(today, cx));
cx.subscribe(&picker, |_, _, event, _| match event {
CalendarEvent::Selected(date) => { /* the chosen day */ }
})
.detach();todaycomes from the app: bezel has no clock.Dateis bezel's own, not chrono's.Date::newreturnsNonefor a day that does not exist.date::month_gridgives the 42 cells to draw a grid of your own.