min
and max
configurations. Set the initial value (will cause the thumb to move to the
appropriate location on the rail) in configuration as well if appropriate.
protected
void
_afterMaxChange
(
e
)
e
< EventFacade >
The max
attribute change event.
protected
void
_afterMinChange
(
e
)
e
< EventFacade >
The min
attribute change event.
protected
void
_afterValueChange
(
e
)
e
< EventFacade >
The valueChange
event.
protected
void
_bindValueLogic
(
)
protected
void
_calculateFactor
(
)
protected
void
_defThumbMoveFn
(
e
)
e
< EventFacade >
The host's thumbMove event
protected
void
_initSliderValueRange
(
)
protected
Number
_nearestValue
(
value
)
value
< mixed >
Value to test against current min - max range
Number
protected
mixed
_offsetToValue
(
offset
)
Converts a pixel position into a value. Calculates current
thumb offset from the leading edge of the rail multiplied by the
ratio of (max - min) / (constraining dim)
.
Override this if you want to use a different value mapping algorithm.
offset
< Number >
X or Y pixel offset
mixed
protected
Number
_setNewValue
(
value
)
value
attribute to be
between the configured min
and max
.
Rounds to nearest integer value.
value
< Number >
Value assigned to value
attribute
Number
protected
void
_setPosition
(
)
protected
void
_syncThumbPosition
(
)
protected
Boolean
_validateNewMax
(
value
)
max
attribute. Numbers
are acceptable. Override this to enforce different rules.
value
< mixed >
Value assigned to max
attribute.
Boolean
protected
Boolean
_validateNewMin
(
value
)
min
attribute. Numbers
are acceptable. Override this to enforce different rules.
value
< mixed >
Value assigned to min
attribute.
Boolean
protected
Number
_valueToOffset
(
val
)
_offsetToValue( xy )
operation.
val
< Number >
The value to map to pixel X or Y position
Number
protected
void
_verifyValue
(
)
Number
getValue
(
)
Slider
setValue
(
val
)
val
<Number>
The new value
maxChange
(
event
)
event
<Event.Facade>
An Event Facade object with the following attribute specific properties added:
minChange
(
event
)
event
<Event.Facade>
An Event Facade object with the following attribute specific properties added:
valueChange
(
event
)
event
<Event.Facade>
An Event Facade object with the following attribute specific properties added: - { Number }
min
if
you want values to increase from right-to-left or bottom-to-top.
- { Number }
max
if you
want values to increase from right-to-left or bottom-to-top.
- { Number }