DevExtreme Vue - 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.vue
- <template>
- <DxDataGrid ...
- :rtl-enabled="true"
- />
- </template>
- <script setup lang="ts">
- import 'devextreme/dist/css/dx.fluent.blue.light.css';
- import DxDataGrid from 'devextreme-vue/data-grid';
- </script>
Set the rtlEnabled property globally using the config() function to enable RTL for the entire application:
App.vue
- <template>
- <!-- ... -->
- </template>
- <script setup lang="ts">
- import config from 'devextreme/core/config';
- config({ rtlEnabled: true });
- </script>
See Also
- RTL Support Demo: DataGrid | Navigation Components | Editors