scale.settings.horizontal

getScale(id).settings.horizontal() (since beta 0.3)

Makes the buttons and labels of the scale appear horizontally. This is the default aesthetics of scales.

Note: until version 1.0, you need to call print (again) for the settings to take effect.

Example:

[js highlight=”10″ try=”true”]
newScale(“slider”, 100)
.settings.slider()
.settings.vertical()
.print()
,
newButton(“rotate”, “Horizontal slider”)
.print()
.wait()
,
getScale(“slider”)
.settings.horizontal()
.print()
[/js]

Adds a vertical slider to the page and a button which, when clicked, rotates the slider so it appears horizontally.