standard.settings.right

getElement(id).settings.right()

Makes the element appear horizontally aligned to the right.

Note: the right means the right of the container of the element, not necessarily the right of the screen.

Example:

[js highlight=”5″ try=”true”]
newText(“sentence”, “This is a longer sentence”)
.print()
,
newText(“helloworld”, “Hello world”)
.settings.right()
.print()
[/js]

Prints Hello world onto the screen, horizontally aligned to the right.