scale.settings.slider

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

Transforms the scale into a slider. Note that sliders always have a default value in order to place their cursor. If you do not use the settings command default, the central (or next-to-central) value will be used.

The Comments column of the results line will report how long it took to move the slider from its former to its selected value (in ms).

Example:

[js highlight=”2″ try=”true”]
newScale(“slider”, 100)
.settings.slider()
.print()
[/js]

Adds a 100-point slider to the page and a validation button.