AdaptTable for Ant Design

Right-to-left Ant Design data table

An Arabic table mirrors the entire layout — search, sort arrows, pinned columns and the pager. Not just translated strings: a genuinely flipped axis.

The filters popover anchors and flips from the correct edge; that is the part only a real RTL page can show.

locale="ar" sets the strings and the direction. The table and the popover are Ant Design.

locale="ar" flips the antd table; the filters popover still lets antd portal its pickers, and it opens from the inline-end edge rather than hanging off the left.

The code

import { DataTable } from "@adapttable/antd";

export function People({ rows, columns }) {
  return (
    <DataTable
      data={rows}
      columns={columns}
      rowKey={(row) => row.id}
      locale="ar"
      filtersMode="popover"
    />
  );
}

Install

pnpm add @adapttable/antd @adapttable/core antd

The same feature in the other kits

More Ant Design features

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