ARIA treegrid Role
The treegrid role marks a grid whose rows can be expanded and collapsed like a tree, such as an email inbox that groups messages into threads.
Description
The treegrid role identifies a grid whose rows can be expanded and collapsed in the same way as a tree. It combines the two patterns: the columns of a grid with the hierarchy of a tree. Email threads, project tasks with subtasks and file lists with details columns are typical uses.
Rows have the row role, and a row with children has aria-expanded. Since the rows are siblings in the DOM, use aria-level, aria-posinset and aria-setsize to describe the hierarchy. The keyboard combines grid and tree behavior: arrow keys move between cells, and Right/Left on the first cell expand and collapse a row.
Tree grids are among the most complex ARIA patterns, so make sure the extra complexity is worth it for your users.
Properties
ARIA Attributes
- Required
- None
- Supported
aria-activedescendant,aria-colcount,aria-errormessage,aria-invalid,aria-multiselectable,aria-orientation,aria-readonly,aria-required,aria-rowcount- Prohibited
- None
- Global
- All global ARIA attributes can also be used, such as
aria-label,aria-labelledby,aria-describedby,aria-hidden.
Syntax
<element role="treegrid">
Example
Browser Support
The following information will show you the current browser support for the treegrid ARIA role. Hover over a browser icon to see the version that first introduced support for this ARIA role.
Desktop





Tablets & Mobile





