Scale element

Scale elements let you add one-line multi-button scales to the screen. The buttons can be radio buttons or text buttons. Only one button in the line can be selected at a time.

Creation:

[js]newScale(“id”, 5)[/js]

or [js]newScale(“id”, “left button”, ” middle button”, “right button”)[/js]

Example:

[js try=”true”]
newScale(“hunger”, 5)
.settings.before( newText(“left”, “Right now, I am… very hungry “) )
.settings.after( newText(“right”, ” not hungry at all”) )
.print()
.wait()
[/js]

The code above adds a 5-point radio scale to the screen, preceded by the text Right now, I am… very hungry to its left, and followed by the text not hungry at all to its right, and waits for a click on one of its buttons.

Actions

[yadawiki-list category=”Action command,Scale element”]

Settings

[yadawiki-list category=”Settings command,Scale element”]

Tests

[yadawiki-list category=”Test command,Scale element”]