Tree View
Visualizzazione Albero
Una tree view è un elenco con livelli. Le righe principali si aprono o si chiudono per mostrare gli elementi figli al loro interno.
Product
- Ricerca
- Prototipo
- Produzione
Un esempio vero
Un file browser apre src per mostrare i componenti. Il focus della tastiera resta sulla riga attiva.
Parti principali
- 01Current location
- 02Destination labels
- 03Focus order
- 04Responsive behavior
Usalo quando
Usalo per la navigazione compatta o la selezione quando i livelli hanno un significato chiaro.
Non usarlo quando
Evitalo quando ci sono pochi livelli o quando i livelli cambiano spesso. Pagine separate potrebbero essere più facili da capire.
Nome usato nel codice
role="tree" / role="treeitem" Prima di spedire
Before release, check the page structure, keyboard access, visible focus, contrast, and zoom. Also check loading, empty, error, success, cancel, and reduced-motion states.
Outcome: Complete the task with Visualizzazione Albero (Tree View). User context: Un file browser apre src per mostrare i componenti. Il focus della tastiera resta sulla riga attiva. Recommended pattern: Visualizzazione Albero (Tree View). Why it fits: Usalo per la navigazione compatta o la selezione quando i livelli hanno un significato chiaro. Do not use it when: Evitalo quando ci sono pochi livelli o quando i livelli cambiano spesso. Pagine separate potrebbero essere più facili da capire. Product requirements: Define the default, loading, empty, error, success, and recovery states. Keep user input. Give clear feedback after every action. Accessibility and resilience: Use semantic HTML, full keyboard access, and visible focus. Make the layout work when zoomed and support reduced motion. Follow the project’s current rules. Do not add a new UI library unless the project already uses it. Acceptance criteria: The main task works with keyboard only and at 320px width. Focus and status changes are announced. Check loading, failure, retry, cancel, and reduced-motion paths. Evidence and limits (evidence boundary): Lo standard copre solo l'ambito elencato. Non sceglie lo stile visivo, la decisione sul prodotto o l'esempio di vocabolario. Unknowns to confirm: Product wording, data source, analytics events, supported devices and languages, and platform limits.
Controlla questa richiesta
Review how Visualizzazione Albero (Tree View) is used now. Definition: Una tree view è un elenco con livelli. Le righe principali si aprono o si chiudono per mostrare gli elementi figli al loro interno. Release checks: Before release, check the page structure, keyboard access, visible focus, contrast, and zoom. Also check loading, empty, error, success, cancel, and reduced-motion states. Before changing code, list the evidence, gaps, severity, and the smallest safe fix.