scale.settings.labelsPositionScale element

(Since version 1.0, formerly labels)


or getScale(id).settings.labelsPosition("left")

(since version 1.0)

or getScale(id).settings.labelsPosition("top")

or getScale(id).settings.labelsPosition("right")

(since version 1.0)

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.

newScale("score",  "Bad", "So-so", "Good")
    .settings.before( newText("label", "Score: ") )

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.