standard.center
Audio Button Canvas Controller DropDown Html Image MediaRecorder Scale Text TextInput Tooltip Video Youtube
description
Makes the element appear centered on the horizontal axis.
syntax
getX(ELEMENT_NAME).center()
example(s)
@
@newText("helloworld", "Hello world")
$ .center()
@ .print()
- Prints Hello world onto the screen, horizontally centered.