module:Slider

module:Slider

Slider class
slider demo

Constructor

# new module:Slider(positionDefinition, optionsopt)

Slider constructor

Parameters:
Name Type Attributes Description
positionDefinition PositionDefinition

Top-left corner

options SliderOptions <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

Overrides:

# value

Change this current value

Overrides:

# width

Change this slider's size

# width

Return this slider's width

Type Definitions

# SliderOptions

Type:
  • Object
Properties
Name Type Attributes Default Description
min Number <optional>
0

Minimum value when the slider is at lowest

max Number <optional>
10

Maximum value when the slider is at highest

value Number <optional>
0

Initial value

width Number <optional>
200

Size of the slider