WarUI

Disabled and non-selectable rows

GRID-A11-F06P1baselinePlanned

A predicate marks individual rows as non-selectable, for example locked or archived records. These rows are skipped by click, range, select-all and API selection, and are visually indicated. Optionally, they can stay focusable for reading.

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

Live example

An order grid where rows with status 'shipped' are non-selectable and rendered greyed out.

Expected behavior

Clicking a shipped row does not select it, and a toast explains why. Range selection skips shipped rows. Select-all ignores them and still shows the fully-checked state when every selectable row is selected.

Planned API surface

isRowSelectable(row)nonSelectableFocusable: booleandisabledRowClassNameonSelectionRejected

Acceptance criteria

  • Rows for which isRowSelectable returns false are never present in the selection. (pending)
  • API calls that try to select such rows are ignored and fire onSelectionRejected with the row keys. (pending)
  • Header select-all coverage excludes non-selectable rows. (pending)
  • When nonSelectableFocusable=false, keyboard navigation skips these rows. (pending)
  • Non-selectable rows have aria-disabled='true' on the selection checkbox. (pending)