scale.settings.labelsPosition

(Since version 1.0, formerly labels)

getScale(id).settings.labelsPosition("bottom")

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.

[js highlight=”3″ try=”true”]
newScale(“score”, “Bad”, “So-so”, “Good”)
.settings.radio()
.settings.labelsPosition(“right”)
.settings.before( newText(“label”, “Score: “) )
.settings.center()
.print()
.wait()
[/js]

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.