scale.labelsPosition

description

(Since version 1.0, formerly labels)

syntax

getScale(ELEMENT_NAME).labelsPosition(bottom)
  • bottom :

alternate(s)

  • getScale(ELEMENT_NAME).labelsPosition("left")

  • getScale(ELEMENT_NAME).labelsPosition("top")

  • getScale(ELEMENT_NAME).labelsPosition("right")

notes

  • Sets the position of the labels of the scale to bottom, left, top or right. If you did not specify labels, the buttons’ indices will be used instead.

  • Adds a scale with 3 horizontally aligned radio buttons to the screen, with labels Bad, So-so and Good above their respective buttons, and waits for a click on one of them.


example(s)


@
@newScale("score",  "Bad", "So-so", "Good")
@    .radio()
$    .labelsPosition("right")
@    .before( newText("label", "Score: ") )
@    .center()
@    .print()
@    .wait()
  • Adds a scale with 3 horizontally aligned radio buttons to the screen, with labels Bad, So-so and Good above their respective buttons, and waits for a click on one of them.