_SliderBase

(esrith/amos/core/_SliderBase)

The basic function of a slider control.

Description
ERROR_MAXMIN_INVALID

ERROR_MAXMIN_INVALID : invalid maximum, minimum value range.

Type Description
lockSlideBar Boolean

if lockSlideBar is true, user cannot slide/move button on slider. However, developer can still move slider by setting "value" property.

maximum Number

maximum value of slider. Maximum value cannot be lower than or equal to minimum. after maximum is set, the position slider button will not changed. Instead, the value of slider will changed to make the button be in the same position.

minimum Number

minimum value of slider. Minimum value cannot be higher than or equal to maximum. after minimum is set, the position slider button will not changed. Instead, the value of slider will changed to make the button be in the same position.

showDecreaseButton Boolean

showDecreaseButton uses to toggle the show/hide decrease button.

showIncreaseButton Boolean

showIncreaseButton uses to toggle the show/hide increase button.

stepSize Number

Step size when user uses increse/decrease button

value Number

Value of slide box associated to button position. value will be between minimum and maximum value.

value Number

reset value to minimum value.

Return type Description
setMinMax(NumberNumber) None

set new minimum, maximum rage. Use this method if you want to change minimum, maximum in the same time. after minimum, maximum is set, the position slider button will not changed. Instead, the value of slider will changed to make the button be in the same position.

Description
slideButton_ValueChange

The event fires when button value change. This can occur when slider button position is changed, or user changed minimum, maximum value of slider.

constants Detail
<String>
ERROR_MAXMIN_INVALID

ERROR_MAXMIN_INVALID : invalid maximum, minimum value range.

Properties Detail
<Boolean>
lockSlideBar

if lockSlideBar is true, user cannot slide/move button on slider. However, developer can still move slider by setting "value" property.

<Number>
maximum

maximum value of slider. Maximum value cannot be lower than or equal to minimum. after maximum is set, the position slider button will not changed. Instead, the value of slider will changed to make the button be in the same position.

<Number>
minimum

minimum value of slider. Minimum value cannot be higher than or equal to maximum. after minimum is set, the position slider button will not changed. Instead, the value of slider will changed to make the button be in the same position.

<Boolean>
showDecreaseButton

showDecreaseButton uses to toggle the show/hide decrease button.

<Boolean>
showIncreaseButton

showIncreaseButton uses to toggle the show/hide increase button.

<Number>
stepSize

Step size when user uses increse/decrease button

<Number>
value

Value of slide box associated to button position. value will be between minimum and maximum value.

<Number>
value

reset value to minimum value.

Methods Detail
setMinMax
(
  • Number
  • Number
)

set new minimum, maximum rage. Use this method if you want to change minimum, maximum in the same time. after minimum, maximum is set, the position slider button will not changed. Instead, the value of slider will changed to make the button be in the same position.

Parameters
  • <Object> Number Required

    minimum the minimum value of slider

  • <Object> Number Required

    maximum the maximum value of slider

Events Detail
slideButton_ValueChange

The event fires when button value change. This can occur when slider button position is changed, or user changed minimum, maximum value of slider.

Event Payload:
  • <Object> Number

    oldValue value before change.

  • <Object> Number

    value new value.