Hello Amin,
What about to use the "[App.TextDirection]" variable? Are you tried with that?
Hello Amin,
Thanks for yor kindly words, Amin, Merry Christmas for you too and Happy New Year creating apps with DecSoft App Builder! :-)
Hello Amin,
Certainly, support RTL languages is not my best... I can imagine that maybe we need to deal with our own CSS... or maybe download something like Bootstrap 4 RTL... (I am not sure if this is maintained by the official team).
Since the above apparently don't work (the download link is dead) I find this other project, who link to this RTL Bootstrap CSS file.
Now, navigate to the RTL Bootstrap CSS file, copy the CSS and save it in a file like "rtltheme.css". Copy this "rtltheme.css" file into the "C:\Users\[Your Windows user]\Documents\AppBuilder\Themes\" directory. Start an app, or open y our own one. Open the app's options, and set available the new theme, even use it by default.
And try it, Amin... I think that must be the direction... and work with possible caveats using more CSS... The referred last project also link to a JS version of Bootstrap... I am not sure if we need this... if so, maybe we can include it in the app's file manager, but maybe this cause some problems with the already included Bootstrap version... the CSS is different... we can use the above RTL CSS file as a theme without problems (if I am not wrong right now).
Hello Amin,
Yes; of course. We can use the SetAppTheme action. You can change the [App.TextDirection] global variable and the app's theme according to the language. Remember that we can include in the app as many themes as we wanted, in addition to set the default one to be used. Then, in runtime, we can set one of the includes themes when needed.
Hello Amin,
I am sorry for too many problems. Certainly change a theme at runtime is possible, but, we are talking here about an special theme... the RTL one... that, in fact, I don't know if it's updated or what... maybe we must see in this direction: trying to locate some Bootstrap RTL... that uses the latest version of Boostrap...
Thinking about... what if you identify that the user needs the RTL theme and then start the app from the scratch? We are here in the same problem than the "default view" that we have in the past? Maybe another configuration variable for the default theme can help?
Hello Amin,
It's very good that you got it. One thing to do by myself is try to search for a possible "stable project" for Bootstrap RTL, search a bit around this topic, so, we can use the right CSS, maybe the one that you already use, and then include this theme in the App Builder's installation, so put it available to be used "out of the box".
As a mental note for me... I want to look if the default theme can be a good candidate to be another "app's configuration" variable, so we can set the default theme before the app start if needed, in the same way that we can set the default app's view. I want to look into this when possible!
Everybody can read the DecSoft support forum for learning purposes, however only DecSoft customers can post new threads. Purchase one or more licenses of some DecSoft products in order to give this and other benefits.
This website uses some useful cookies to store your preferences.