DevExtreme React - 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.tsx
- import React from 'react';
- import 'devextreme/dist/css/dx.fluent.blue.light.css';
- import DataGrid from 'devextreme-react/data-grid';
- export default function App() {
- return (
- <DataGrid ...
- rtlEnabled={true}
- />
- );
- }
Set the rtlEnabled property globally using the config() function to enable RTL for the entire application:
App.tsx
- import React from 'react';
- import config from 'devextreme/core/config';
- config({ rtlEnabled: true });
- export default function App() {
- return (
- // ...
- );
- }
See Also
- RTL Support Demo: DataGrid | Navigation Components | Editors