How can I dynamically switch between standard and RTL CSS
New to GWT. Followed the tutorial (StockWatcher) through the Internationalization section and applied the same to an RTL language.
The strings and messages were in the correct language, but the page orientation remained LTR until I changed the CSS file in the projects GWT.xml file (e.g. from 'Standard.css' to 'StandardRTL.css'), reloaded the page and now the table columns and other elements are laid correctly RTL.
If I were to offer a language selection control on the page itself and one of the options is an RTL language, I would need a way to reload the page with a matching css (i.e. Standard.css for LTR languages and StandardRTL.css for RTL languages).
How can this be done in GWT?
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/QDiAsr8n95wJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home