Zustände
Uhrzeitfeld leer, gefüllt, Fehler, deaktiviert, schreibgeschützt und mit 15-Minuten-Raster.
Formulare
Time field (Figma: Time Field + Time Picker), form-associated <tc-time-picker>: 24 h, monospaced value, typed input with mask ("1430" becomes 14:30), ArrowUp/ArrowDown change by one step (at least one minute), PageUp/PageDown by 15 minutes. The clock button or Alt+ArrowDown opens a popover with hour and minute columns (seconds when step < 60) that respect step, min and max. ISO value HH:MM.
Uhrzeitfeld leer, gefüllt, Fehler, deaktiviert, schreibgeschützt und mit 15-Minuten-Raster.
zwei Uhrzeitfelder bilden eine Zeitspanne mit berechneter Dauer.
tc-time-picker ohne Template-Tag, value/valueAsNumber, show() und tc-change.
5-Minuten-Raster, Servicezeit 07:00–19:00 und Sekunden bei step unter 60.
| Option | Standard | Werte | Beschreibung |
|---|---|---|---|
label | '' | – | Visible label text. |
required | False | – | Mark as required: native required attribute plus a red asterisk. |
optional | False | – | Show the "optional" marker after the label (ignored when required). |
label_icon | '' | – | Explanation shown as a help icon with tooltip after the label. |
hide_label | False | – | Keep the label for assistive technology only. |
help | '' | – | Hint below the control (Figma: Hint / Help Text). |
error | '' | – | Error message or list of messages (e.g. Django field.errors); sets the error state, aria-invalid and aria-describedby. Replaces the hint while shown. |
state | '' | Validation state without an error message: success or warning colour the border and the hint. | |
name | '' | – | Form field name (Django html_name). |
value | 'None' | – | Current value; dates and numbers are converted to their ISO/text form. |
disabled | False | – | Disable the control. |
readonly | False | – | Read-only: value stays selectable and is submitted. |
placeholder | '' | – | Placeholder text (never a replacement for the label). |
size | 'md' | Height: sm 28, md 36, lg 44 px (match the buttons in the same row). | |
min | '' | – | Earliest allowed value (ISO text or date/datetime/time object). |
max | '' | – | Latest allowed value (ISO text or date/datetime/time object). |
step | 'None' | – | Step in seconds, e.g. 300 (5 min) or 900 (15 min); below 60 adds seconds. |
Zusätzliche Attribute (z. B. class, aria-*, data-*) und HTMX-Kurzformen (get, post, get_url, post_url, target, swap, trigger, confirm) werden an das Element „root“ durchgereicht.