Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commitdd348ac6c3

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

  • onChange receives the newly-formatted date string as value.
  • The widget id falls back to opts.id when the id positional is nil.
  • Date format follows the jiff strftime specifier syntax (e.g. "%Y-%m-%d", "%Y/%m/%d").