RTL Layout
NextGrid uses logical 'start' and 'end' edges across columns, selection checkboxes, menus, and scrollbars so right-to-left locales work without custom CSS hacks.
Enabling RTL
Section titled “Enabling RTL”const grid = new Grid<Order>({ container, direction: 'rtl', columnDefs: [ { key: 'id', name: 'ID', width: 96, pinned: 'start' }, // renders on the right edge in RTL { key: 'customer', name: 'Customer', flex: 1 }, ], rowData, rowSelection: { mode: 'multiple', showCheckbox: true, checkboxPinned: 'start' },});What Adapts Automatically in 'rtl'
Section titled “What Adapts Automatically in 'rtl'”- Pinning & Checkboxes:
pinned: 'start'andcheckboxPinned: 'start'align to the right edge;'end'aligns to the left edge. - Keyboard Navigation:
ArrowLeftmoves visually left (to the next column in RTL) andArrowRightmoves visually right. - Menus & Popups: Header and body context menus anchor and flip cleanly within RTL viewports.
- Scroll Geometry: Single-scroll-owner synchronization in
SurfaceCoordinatorpreserves exact RTL horizontal scroll offsets.