I need to add RTL languages support to my application. I know how to set the direction to RTL:
UI.getCurrent().setDirection(Direction.RIGHT_TO_LEFT)
but I also need to programmatically get this value in order to do some changes in the code.
How to get current Direction
value in the view?
Smells like a missing API, but for now, due to the async nature of
executeJs
, you might consider the following:After this PR is merged and released, you can just use the API with the same name from
Page
instance: