shadow
TabGroup displays a tab-based navigation that allows users to switch between and view different parts of the application's content without having to navigate to another page. It consists of individual tabs Tab and Panels, which when clicked display the contents of the tab.
The TabGroup element supports multiple appearance variants using the variant attribute.
The Card element has been used only for the purpose of this demonstration.
By adding the variant property it is possible to change the location of the tabs. Supported values are start, end and bottom.
The preview aligns the tabs to the top, which is useful with a shorter number of tabs and a classic desktop layout.
The preview aligns the tabs to the end of the container, so you can see how the rhythm and visual of the entire navigation changes.
The preview moves the tab navigation to the bottom edge, which is useful for mobile or app designs, for example.
Use wje-tab-group when the user needs to navigate the application or transition between states/screens.
Do not use multiple parallel navigation patterns that compete with each other.
Provide clear active/selected states, predictable tab order, and naming of controls.
- Keep the URL and UI state in sync to make the navigation reproducible.
- Use consistent terminology for items across menus, breadcrumb and tabs.
- For deep structures, add auxiliary context (breadcrumb, title, icons).
| Popis | Nastavuje typ vstupu, ktorý riadi spracovanie a validáciu hodnoty. |
| Atribút | type |
| Typ | string |
| Predvolené | panel |
| Popis | Nastavuje ARIA metadáta, ktoré zlepšujú prístupnosť pre asistenčné technológie. |
| Atribút | variant |
| Typ | string |
| Predvolené | top |
Pre tento komponent nie sú dostupné žiadne udalosti.
| Popis | Odstráni active tab z aktuálneho stavu komponentu. |
| Signatúra | () => void |
| Popis | Nastaví active tab a aplikuje súvisiace zmeny stavu. |
| Signatúra | (tab: string) => void |
| Popis | Vráti active tab z aktuálneho stavu komponentu. |
| Signatúra | () => Element|null |
| Popis | Vráti tab všetky z aktuálneho stavu komponentu. |
| Signatúra | () => Array<Element> |
| Popis | Vráti všetky tabs z aktuálneho stavu komponentu. |
| Signatúra | () => Array<Element> |
| Popis | Vráti panel všetky z aktuálneho stavu komponentu. |
| Signatúra | () => Array<Element> |
| Popis | Vráti panel všetky name z aktuálneho stavu komponentu. |
| Signatúra | () => Array<string> |
| Popis | Prepne more visibility medzi zapnutým a vypnutým stavom. |
| Signatúra | () => void |
| Popis | Spustí metódu initTabMetrics na vykonanie logiky komponentu a aktualizáciu jeho stavu. |
| Signatúra | () => void |
| Popis | Spustí metódu measureTabMetrics na vykonanie logiky komponentu a aktualizáciu jeho stavu. |
| Signatúra | () => Array<{el: Element, width: number}> |
| Popis | Spustí metódu measureMoreWidth na vykonanie logiky komponentu a aktualizáciu jeho stavu. |
| Signatúra | () => void |
| Popis | Spustí metódu checkOverflow na vykonanie logiky komponentu a aktualizáciu jeho stavu. |
| Signatúra | () => void |
| Popis | Spustí metódu dropdownActive na vykonanie logiky komponentu a aktualizáciu jeho stavu. |
| Signatúra | (el: HTMLElement) => void |
Pre tento komponent nie sú dostupné žiadne CSS časti tieňa.
| Názov | Popis |
|---|
--wje-tab-group-padding | Vlastná CSS premenná, ktorá riadi padding. |
| Názov | Popis |
|---|
default | Predvolený slot pre hlavný obsah komponentu. |
nav | Slot pre vlastný navigačný obsah. |