Treegrid
ツリーグリッド
ツリーグリッドは、子行を持つことができる行を備えたインタラクティブな表です。セルが列に揃ったまま、行レベルを開くことができます。
もう一つの例
ファイナンスマネージャーは、予算、実績、差異の列で部門、チーム、コストセンターを比較します。右矢印キーで部門を開いたり、そのセルに入ることができます。閉じると子行は削除されますが、親行のフォーカスと合計は保持されます。
主な部分
- 01階層行
- 02列セル
- 03展開メタデータ
以下の場合に使用します
人々が同じタスクで行レベルを開き、テーブル列を比較する必要がある場合にのみ使用します。
以下の場合は使用しないでください
キーボード操作がタスクより難しい場合は、より簡単なオプションを使用してください。詳細パネル付きのツリーやネストされたテーブルを試してみてください。
コードで使用する名前
role=treegrid with row aria-level/expanded and gridcell columns 出荷前に
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 ツリーグリッド (Treegrid)。 User context:ファイナンスマネージャーは、予算、実績、差異の列で部門、チーム、コストセンターを比較します。右矢印キーで部門を開いたり、そのセルに入ることができます。閉じると子行は削除されますが、親行のフォーカスと合計は保持されます。 Recommended pattern:ツリーグリッド (Treegrid)。 Why it fits:人々が同じタスクで行レベルを開き、テーブル列を比較する必要がある場合にのみ使用します。 Do not use it when:キーボード操作がタスクより難しい場合は、より簡単なオプションを使用してください。詳細パネル付きのツリーやネストされたテーブルを試してみてください。 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):その情報源にとって公式です。他のプラットフォームやチームはその用語を別の方法で使用する場合があります。 Unknowns to confirm: Product wording, data source, analytics events, supported devices and languages, and platform limits.
このリクエストを確認する
Review how ツリーグリッド (Treegrid) is used now. Definition: ツリーグリッドは、子行を持つことができる行を備えたインタラクティブな表です。セルが列に揃ったまま、行レベルを開くことができます。 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.