module:Slider

Slider class
slider demo

Constructor

new module:Slider(positionDefinition, optionsopt)

Slider constructor

Parameters:
NameTypeAttributesDescription
positionDefinitionPositionDefinition

Top-left corner

optionsSliderOptions<optional>

Specific options

Extends

Members

(static) defaultOptions :SliderOptions

Type:
  • SliderOptions

(static) HEIGHT :Number

Height of sliders

Type:
  • Number

height

Return this slider's height

value

Returns this current value

value

Change this current value

width

Change this slider's size

width

Return this slider's width

Type Definitions

SliderOptions

Type:
  • Object
Properties
NameTypeAttributesDefaultDescription
minNumber<optional>
0

Minimum value when the slider is at lowest

maxNumber<optional>
10

Maximum value when the slider is at highest

valueNumber<optional>
0

Initial value

widthNumber<optional>
200

Size of the slider