WarUI

Per-Cell Read-Only Rules

GRID-A14-F15P0baselinePlanned

Decides whether each cell can be edited using rules at the column level, the row level and the cell level, combined in a documented order. Real apps lock cells based on status, permissions or other values in the row.

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

Live example

An orders grid with mixed statuses and a 'current user role' selector.

Expected behavior

Locked cells cannot be edited by any trigger, and editors rendered in always-on mode become disabled. Optional lock icons and muted styling show which cells are locked. Changing the role re-evaluates editability without reloading the data.

Planned API surface

columns[].editable: boolean | (params) => booleanrowEditable(row)isCellEditable(params)readOnlyrefreshEditability()

Acceptance criteria

  • The precedence order is grid readOnly, then rowEditable, then the column editable setting, then isCellEditable. Any false result locks the cell. (pending)
  • Read-only cells have aria-readonly=true. (pending)
  • If a rule changes while a cell is being edited, the edit is cancelled and the user is notified. (pending)
  • refreshEditability() re-runs the rules on visible rows. (pending)