import "./_metronic/assets/sass/style.scss"
import "./_metronic/assets/rtl/style.rtl.css"
direction="rtl"
, dir="rtl"
and style
attribute with value direction: rtl
.data-kt-menu-placement='bottom-start'
=> data-kt-menu-placement='bottom-end'
data-kt-menu-placement='right-start'
=> data-kt-menu-placement='left-start'
'left-start'
to the 'menuPlacement'
property: menuPlacement?: 'right-start' | 'bottom-start' | 'left-start'
.'right-start'
to 'left-start'
.Thanks for the info.. If I am using rtl and ltr languages in one project. How can I keep both css files. then based on the selected language the ltr or rtl is loaded with the changes you explained above.
I would appreciate your help on this.
Thanks,
Abdullah
Hi Abdullah,
Unfortunately, dynamic direction switching is currently not supported by Metronic SPA versions.
The only way to change the direction dynamically in our React version is by updating the link href of the main style file. To achieve this, follow the steps below:
import "./_metronic/assets/sass/style.scss"
Appreciate your help.
Thanks,
Abdullah