Skip to main content Link Search Menu Expand Document (external link)

scale.horizontal

description

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

syntax

getScale(ELEMENT_NAME).horizontal()

example(s)


@
@newScale("slider",   100)
@    .slider()
@    .vertical()
@    .print()
@,
@newButton("rotate", "Horizontal slider")
@    .print()
@    .wait()
@,
@getScale("slider")
$    .horizontal()
@    .print()
  • Adds a vertical slider to the page and a button which, when clicked, rotates the slider so it appears horizontally.