Slider

The Slider class contains the functionality for a basic Slider implementation. The slider component allows a user to select
a value (by dragging the thumb component along a track) between the specified minimum and
maximum values:

The following example instantiates and initializes a new slider component called mySlider:

The horizontal slider has a minimum value of 0, and a maximum value of 1000. The following function, which is called by the event
listener updates the value (level) of the slider every time the user moves the slider thumb: