Constructor
new RangeElement(parentnon-null, controlsnon-null, containerClassNamesnon-null, barClassNamesnon-null)
Parameters:
Name | Type | Description |
---|---|---|
parent |
HTMLElement | |
controls |
shaka.ui.Controls | |
containerClassNames |
Array.<string> | |
barClassNames |
Array.<string> |
- Extends:
- Source:
Extends
Members
container :HTMLElement
This container is to support IE 11. See detailed notes in
less/range_elements.less for a complete explanation.
Type:
- HTMLElement
- Source:
parent :HTMLElement
Type:
- HTMLElement
- Overrides:
- Source:
Methods
onChange()
Called when a new value is set by user interaction.
To be overridden by subclasses.
- Source:
onChangeEnd()
Called when user interaction ends.
To be overridden by subclasses.
- Source:
onChangeStart()
Called when user interaction begins.
To be overridden by subclasses.
- Source:
setBarValueForTouch_(event)
Synchronize the touch position with the range value.
Comes in handy on iOS, where users have to grab the handle in order
to start seeking.
Parameters:
Name | Type | Description |
---|---|---|
event |
Event |
- Source:
setRange(min, max)
Parameters:
Name | Type | Description |
---|---|---|
min |
number | |
max |
number |
- Source:
setValue(value)
Parameters:
Name | Type | Description |
---|---|---|
value |
number |
- Source: