Calendar
ui.widgets.CalendarDatumsnavigation und -auswahl in der Monatsansicht.
BEHAVIOR CONTRACT
Monatsberechnung, Versatz der ersten Woche, Auswahl und Navigation teilen sich das SimpleDate-Modell.
RECORDED INTERACTION
Der Harness klickt auf den 18. und die Auswahl wandert mit.
// ── Calendar ──
pub fn buildCalendar(scope: *ui.Scope, cx: *ui.Cx) anyerror!*ui.Node {
const cal = try W.Calendar(.{ .initial_year = 2026, .initial_month = 5 }).mount(scope, cx);
return cal.wrapper;
}Der unveränderte Quellcode der Story aus dem Storybook (zenit 5f9add5+wip 2026-09-30). W steht für ui.widgets; col / row / label sind kleine Layout-Helfer des Storybooks.
CalendarProps
ui.widgets.Calendarfn Calendar(props: CalendarProps) CalendarBuilderFeld
Typ
Standard
Beschreibung
initial_yearu162025—
initial_monthu81—
selected_date?SimpleDatenull—
on_select?core.HandlerRefnull—
cell_sizef3236—
prev_icon_asset?svg_assets.Assetnull—
next_icon_asset?svg_assets.Assetnull—
CalendarResult
ui.widgets.CalendarFeld
Typ
Standard
Beschreibung
wrapper*Node—
—
state*CalendarState—
—