A labelled date (and optional time) field: label left, value box right. Clicking the box opens
a calendar popup on UIRoot.popupLayer behind a click-blocking backdrop (Escape or an outside
click closes it). Navigate months with the header arrows and click a day to pick it; with
showTime the popup adds hour/minute steppers and a Set button, otherwise a day click commits
immediately.
Values are plain Haxe Dates; the field shows YYYY-MM-DD (plus HH:MM when showTime).
Constructor
new(label:String, width:Float, ?value:Date, ?onSelect:Date ‑> Void)
Parameters:
label | the row text on the left |
|---|---|
width | layout width (the value box sits at the right edge) |
value | the initial value (defaults to now) |
onSelect | fired when a value is committed |
Variables
Methods
localize(key:String, fallback:String):Void
Switches the label to a localized string.
Parameters:
key | the translation key |
|---|---|
fallback | the source-language text |