Zustände
Datumsfeld mit Wert, leer, Fehler, deaktiviert und schreibgeschützt; Eingabe im Format TT.MM.JJJJ.
Formulare
Date field (Figma: Date Picker / Field + Date Picker), form-associated <tc-date-picker> with a custom calendar popover (no native browser picker): typed input in German format (TT.MM.JJJJ), ISO value (YYYY-MM-DD) for Django. The calendar opens from the calendar button, Alt+ArrowDown or ArrowDown in the field and follows the APG date picker dialog pattern (arrows, PageUp/PageDown, Home/End, Enter, Escape). type=datetime-local adds hour/minute inputs, month shows a month grid, week selects ISO weeks; range=True selects start and end in two months and submits name and name_end.
Datumsfeld mit Wert, leer, Fehler, deaktiviert und schreibgeschützt; Eingabe im Format TT.MM.JJJJ.
Zeitraum über zwei Monate, Datum mit Uhrzeit, Kalenderwochen, Monat und Wochennummern.
tc-date-picker ohne Template-Tag, value/valueAsDate, show(), Events und gesendete ISO-Werte.
frühestes und spätestes Datum, gesperrte Wochenenden und Feiertage.
Kalender und Zeitauswahl liegen in der Top-Layer-Ebene und werden vom Dialog nicht abgeschnitten.
Monat und Jahr in der Kopfzeile öffnen eine Monats- bzw. Jahresübersicht (12 Jahre je Seite).
| 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). |
type | 'date' | Value type: date, datetime-local, month or week. | |
range | False | – | Start and end date in one field (type date only). |
name_end | '' | – | Field name of the end date (range). |
value_end | 'None' | – | End date (range). |
week_numbers | False | – | Show calendar week numbers (always on for type week). |
footer | True | – | Show the "Today" / "Clear" footer (Figma: Show Footer). |
disabled_dates | '' | – | Dates that cannot be chosen: list or comma-separated ISO dates. |
disabled_weekdays | '' | – | ISO weekdays that cannot be chosen, e.g. "6,7" for weekends. |
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.