⚠ This website is the beta version of the PCIbex documentation and is still under development. ⚠
Link Search Menu Expand Document

standard.center

Audio Button Canvas Controller DropDown Html Image MediaRecorder Scale Text TextInput TextInput Tooltip Video Youtube

syntax

getX(“ELEMENT_NAME”).center()

What does getX() mean?

description

Horizontally centers the element.


example


@newButton("centered-button", "Hello, button!")
$    .center()
@    .print()

↳ Prints a horizontally centered button that says Hello, button!.