aria-rowindex property is used on a table, grid or a treegrid where all the rows are currently not present. aria-rowindex property notifies the index or position of the row in a table or grid or a treegrid with respect to the number of rows available. User agents can calculate the index of the row if all the rows of the table or grid are available, so aria-rowindex property is not required in those cases.
The value of aria-rowindex property must be greater than or equal to one, greater than the value of previous rowindex in the same row and less than or equal to total number of rows in the table. For a cell or gridcell that spans more than one row set aria-rowindex property at the beginning of the cell. If the set of rows which is present in the DOM is contiguous, and if there are no cells which span more than one row or row in that set, then authors may place aria-rowindex on each row, setting the value to the index of the first row of the set.
aria-rowindex property used in roles
- cell
- row
Values of aria-rowindex property
The value of aria-rowindex property must be greater than or equal to one, greater than the value of previous rowindex in the same row and less than or equal to total number of rows in the table.