Builtin Library
README.md
datePicker
Calendar-popup date picker. Wraps egui_extras::DatePickerButton
(egui_extras 0.34 with the datepicker feature, enabled in
crates/zero_ui/Cargo.toml). Value flows as an ISO-style date string;
format defaults to "%Y-%m-%d" and can be overridden with a jiff
strftime spec.
Exports
datePicker(id: string?, value: any?, opts: DatePickerOpts?) -> WidgetNode— build a date-picker widget node.
Types:
DatePickerOpts = { id?, props?, style?, format?, onChange?, enabled?, focusable?, tooltip? }
Usage
local datePicker = require("@builtin::modules.zui.widget.datePicker")
datePicker("startDate", "2026-05-03", {
onChange = "startDateChanged",
})
datePicker("birthday", "1990/01/15", {
format = "%Y/%m/%d",
onChange = "birthdayChanged",
focusable = true, -- Wave 5 (#2416) prep; informational today
})
Notes
onChangereceives the newly-formatted date string asvalue.- The widget id falls back to
opts.idwhen theidpositional is nil. - Date format follows the jiff strftime specifier syntax (e.g.
"%Y-%m-%d","%Y/%m/%d").