AdaptTable for Taiga UI

Right-to-left Taiga UI data table

Arabic labels and cell values mirror the table, its pager and the filter popover. Pinning uses logical edges, so start is the right edge.

Pass getLabels("ar") to labels and getDirection("ar") to dir. Every table, including nested tables, receives the same presentation settings.

Append ?locale=ar&dir=rtl to any Angular feature page to exercise its real table in Arabic and right-to-left layout.

The code

import { Component, input } from "@angular/core";
import type { ColumnDef } from "@adapttable/angular";
import { getDirection, getLabels } from "@adapttable/i18n";
import { AdaptDataTable } from "@adapttable/taiga-ui";
import { filters } from "@adapttable/taiga-ui/filters";

@Component({
  selector: "app-arabic-people",
  imports: [AdaptDataTable],
  template: `
    <adapt-data-table
      [data]="rows()" [columns]="columns()" [rowKey]="rowKey"
      [dir]="dir" [labels]="labels" [features]="features"
      filtersMode="popover"
    />
  `,
})
export class ArabicPeople {
  readonly rows = input.required<readonly Person[]>();
  readonly columns = input.required<readonly ColumnDef<Person>[]>();
  readonly rowKey = (row: Person) => row.id;
  readonly dir = getDirection("ar");
  readonly labels = getLabels("ar");
  readonly features = [filters([{ key: "name", type: "text", label: "الاسم" }])];
}

Install

# Follow the kit setup guide for compatible peers
pnpm add @adapttable/taiga-ui @adapttable/angular @taiga-ui/core@5.26.0 @taiga-ui/kit@5.26.0 @taiga-ui/cdk@5.26.0 @taiga-ui/i18n@5.26.0 @taiga-ui/styles@5.26.0 @taiga-ui/icons@5.26.0 @taiga-ui/event-plugins@^5 @taiga-ui/design-tokens@~0.320.0 @angular/cdk@^22 @angular/forms@^22 @angular/router@^22 rxjs@^7.8.2

The same feature in the other kits

More Taiga UI features

Reference: i18n-rtl. More of this kit: AdaptTable for Taiga UI, or the live demo.