IBracketRound

interface
Data & Models

A round (column in horizontal mode, row in vertical mode) of the tournament tree. Title is required — OrigamBracket renders it above/beside the matches list. The side property is only meaningful for double-elimination.

TypeScript

Définition

La définition TypeScript de l'interface telle que trouvée dans le code source d'origam. Cliquez sur l'icône de copie pour copier l'extrait.

typescript

API

Propriétés

Chaque propriété déclarée par cette interface, avec son type, son caractère optionnel et sa valeur par défaut.

id
requis
string | number
Stable identifier — used as key and in slot scopes.
title
requis
string
Pre-translated label ("Quarter-finals", "Semi-finals", "Final"). The component does not call useT.
matches
requis
IBracketMatch[]
Ordered list of matches that belong to this round.
side
TBracketRoundSide
Optional bracket-side marker for double-elimination layouts. Drives grouping into Winner/Loser Bracket/Grand Final sections.

Écosystème

Utilisé par

Composants et composables qui étendent ou consomment cette interface.

Usage

Exemples

Extraits de code prêts à coller utilisant cette interface.

Defining a semi-final round

typescript