Slider

A widget that lets users select a value from a range by sliding a handle or by clicking at specific points along a track allowing them to set a value according to the position of the handle.

local slider = Slider()

Properties

setRange(start, end)

Sets the slider’s range

setValue(value)

Sets the current value

getValue()

Returns the current value

setOrientation(orientation)

Sets the orientation: horizontal or vertical

setTickPosition(position)

Sets the position of tick marks on a slider

Positions: none, above, left, below, right and bothsides