Semantic table for lists of records: sortable headers, Mono for technical values, status and tag cells, selection with a bulk action bar, row actions, empty state and caption. Below 560 px width rows become cards (title, status, details, meta, actions). Use tc_data_table for server-side search and paging.
Spalten, die nicht passen, klappen nach Priorität (1 = wichtigste) in eine Detailzeile; Umschalter mit aria-expanded, Inhalte bleiben Links und Badges.
Sticky header row (with max_height inside the table, else relative to the page).
max_height
''
–
Scroll the body inside the table at this CSS height, e.g. "480px".
selectable
False
–
Checkbox column with select-all and a bulk action bar.
row_key
'id'
–
Row key used as checkbox value and data-row-id.
selected
'()'
–
Initially selected row ids.
select_name
'selected'
–
Form name of the row checkboxes.
sort
''
–
Current sort, e.g. "name" or "-changed" (shows aria-sort and arrows).
sort_url
''
–
Link pattern with {sort} for server-side sorting; empty sorts in the browser.
empty_text
''
–
Text of the empty state (default "No entries").
mobile
'cards'
cardsdetailsscroll
Below 560 px width: card list (default), detail rows or horizontal scrolling.
responsive
''
''details
"details": columns that do not fit collapse by priority into an expandable detail row per record (column option priority: 1 = most important, 0/"always" never).
configurable
False
–
Gear button to show, hide and reorder columns; stored per table id in localStorage.
hidden_columns
'()'
–
Column keys hidden by default in the column configuration.
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.