WarUI

Full-Dataset aria-rowcount and aria-colcount

GRID-A23-F05P0baselinePlanned

The grid exposes aria-rowcount and aria-colcount that reflect the full logical dataset, not just the rendered DOM. Screen readers can then announce 'row 5 of 10,000' accurately. The counts include header rows, and server-side data sources can supply an unknown count (-1).

Planned. This page shows the specification from issue #203. The live example, source for every framework and the API reference replace it when the feature ships.

Live example

A grid backed by a simulated server with 10,000 rows and 25 columns. An attribute inspector shows aria-rowcount and aria-colcount.

Expected behavior

aria-rowcount equals data rows plus header rows, or -1 when unknown. aria-colcount decreases when columns are hidden. The inspector updates live.

Planned API surface

totalRowCountrowCountUnknownariaRowCountIncludesHeadersrowCountChange

Acceptance criteria

  • aria-rowcount equals total data rows plus header row levels. (pending)
  • When rowCountUnknown is true, aria-rowcount is -1. (pending)
  • aria-colcount equals the number of visible leaf columns. (pending)
  • Counts update within one render frame after a filter, data or column visibility change. (pending)