RTL applications uses a right-to-left flow direction. Flow direction is the direction in which script is written and displayed for a given language, and the UI elements on the page are scanned by the eye.
ui.rtl read/write property
Get or set the right to left application layout, as a boolean
value.
This setting must be applied before any window or widget creation, as RTL layout won't be applied for the Windows created before.
Example
local ui = require "ui"
-- must be set first to use right to left layout
ui.rtl = true
local win = ui.Window("RTL Window")
win:center()
local button = ui.Button(win, "Click Me !")
button:center()
function button:onClick()
ui.msg("I am a RTL message box")
end
ui.run(win):wait()