DevExtreme Angular - Right-to-Left (RTL) Support

Right-to-left (RTL) support allows UI components to adapt their layout to right-to-left locales.

Use the rtlEnabled property to enable RTL for an individual UI component:

app.component.html
app.component.ts
  • <dx-data-grid ...
  • [rtlEnabled]="true">
  • </dx-data-grid>
  • import { Component } from '@angular/core';
  • import { DxDataGridModule } from 'devextreme-angular';
  •  
  • @Component({
  • selector: 'app-root',
  • templateUrl: './app.component.html',
  • styleUrls: ['./app.component.css'],
  • standalone: true,
  • imports: [DxDataGridModule]
  • })
  • export class AppComponent {
  • // ...
  • }

Set the rtlEnabled property globally using the config() function to enable RTL for the entire application:

app.component.ts
  • import { Component } from '@angular/core';
  • import config from 'devextreme/core/config';
  •  
  • @Component({
  • selector: 'app-root',
  • templateUrl: './app.component.html',
  • styleUrls: ['./app.component.css'],
  • standalone: true
  • })
  • export class AppComponent {
  • constructor() {
  • config({ rtlEnabled: true });
  • }
  • }
See Also