uiform timeentry - part-cw/lambdanative GitHub Wiki
(timeentry . args)
The uiform timeentry element creates a time entry field.
| Parameter | Default | Description |
|---|---|---|
| id | #f | Variable to store entered string in |
| location | 'db | Textentry variable storage location |
| text | "" | Label string |
| ampm | #f | Show AM/PM toggle |
| defaultampm | "AM" | AM/PM toggle default |
| indent | 0.1 if no label text, or 0.3 with label text | Indent from left edge of screen (in units of uiform width) |
Example
Example 1: A complete page definition with time entry
(sleep-before
"Before Sleep"
#f
#f
(label text "Planned Lights Out Time:")
(spacer)
(timeentry text "" indent 0.4 id lights_out ampm lights_out_ampm defaultampm "PM")
(spacer)
)