Constructor
new module:Slider(positionDefinition, optionsopt)
Slider constructor
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
positionDefinition | PositionDefinition | Top-left corner | |
options | SliderOptions | <optional> | Specific options |
- Source
Extends
Members
(static) defaultOptions :SliderOptions
Type:
- SliderOptions
- Source
(static) HEIGHT :Number
Height of sliders
Type:
- Number
- Source
height
Return this slider's height
- Source
value
Returns this current value
- Overrides
- Source
value
Change this current value
- Overrides
- Source
width
Change this slider's size
- Source
width
Return this slider's width
- Source
Type Definitions
SliderOptions
Type:
Properties- Object
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 |
- Source