AdaptTable for NG-ZORRO

Accessible NG-ZORRO data table

Tab into the grid and the arrows move a visible focus, one cell at a time. Home and End jump to the row's edges.

Every move, sort, filter and edit is announced through a live region — the part of a table a sighted reader cannot check, so this page repeats those announcements as text as they happen.

columnSelectionCheckbox puts a named checkbox on each header so a column can be selected without a modifier key a touchscreen does not have. Focus, selection, status and disabled controls stay legible in high contrast and forced-colors — nothing is color-only. The grid and the checkboxes are NG-ZORRO.

The code

import { Component, input } from "@angular/core";
import type { ColumnDef } from "@adapttable/angular";
import { AdaptDataTable } from "@adapttable/ng-zorro";
import { cellNavigation } from "@adapttable/ng-zorro/cell-navigation";
import { columnSelectionCheckbox } from "@adapttable/ng-zorro/column-selection";

@Component({
  selector: "app-keyboard-people",
  imports: [AdaptDataTable],
  template: `
    <adapt-data-table
      tableLabel="People keyboard grid"
      [data]="rows()" [columns]="columns()" [rowKey]="rowKey"
      [features]="features"
    />
  `,
})
export class KeyboardPeople {
  readonly rows = input.required<readonly Person[]>();
  readonly columns = input.required<readonly ColumnDef<Person>[]>();
  readonly rowKey = (row: Person) => row.id;
  readonly features = [cellNavigation(), columnSelectionCheckbox()];
}

Install

pnpm add @adapttable/ng-zorro @adapttable/angular @adapttable/core ng-zorro-antd @angular/forms @angular/router

The same feature in the other kits

More NG-ZORRO features

Reference: accessibility, cell-navigation. More of this kit: AdaptTable for NG-ZORRO, or the live demo.