Aktionen
zusammengehörige Nebenaktionen mit „Mehr“ in drei Hierarchien
Aktionen
Related actions or toggles as one connected control: 2-6 items of one size and hierarchy. actions = secondary actions + "more"; split = main action + menu toggle; tools = icon tools (role=toolbar, arrow keys, horizontal or vertical); view = switch the presentation (single selection in navy, aria-pressed). Pass items (dicts) or tc_button/tc_icon_button children; the group applies its hierarchy and size to them. Form-associated: name + selected value(s) submit with the form; tc-change (detail: {value}) on toggle; property value.
zusammengehörige Nebenaktionen mit „Mehr“ in drei Hierarchien
Hauptaktion plus Menü mit Varianten derselben Aktion
Icon-Werkzeugleiste mit Pfeiltasten, horizontal oder vertikal
Darstellung umschalten, gewählt in Navy, Wert für Formulare und HTMX
<tc-button-group> im Formular; value-Property und Event tc-change.
| Option | Standard | Werte | Beschreibung |
|---|---|---|---|
type | 'actions' | Actions, split button, tools or view switch. | |
variant | 'outlined' | Hierarchy of all items. | |
size | 'md' | Item height: sm 28, md 36, lg 44 px. | |
orientation | 'horizontal' | Vertical stacks icon tools. | |
label | '' | – | Accessible group name (required for tools and view). |
items | 'None' | – | List of dicts: label, icon, value, selected, disabled, href, title, caret, attrs. |
select | '' | Toggle behaviour: none, single or multiple (default: single for view). | |
name | '' | – | Form field name for the selected value(s) (comma-separated when multiple). |
value | '' | – | Selected item value(s), comma-separated (alternative to item "selected"). |
menu | '' | – | Split: id of the popover/menu opened by the toggle (popovertarget). |
menu_label | '' | – | Split: accessible name of the menu toggle; defaults to "More options". |
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.