-
Notifications
You must be signed in to change notification settings - Fork 11
Slider
Daniel Torren Peraire edited this page Jun 26, 2020
·
4 revisions
Simple range slider based on the html input tag, allows user to slide continuously through variables.

This is an interactive element that the developer should implement wherever they want the user to learn something by testing out a variable over a range of value.
-
min- Number, default = 0.0 used to set the minimum value of the slider -
max- Number, default = 100.0 used to set the maximum value of the slider -
step- Number, default = 10.0 used to set the step size in the range of motion of the slider -
init_val- Number, default = 50.0 used to set initial value of the slider -
disabled- Boolean, default = false used to disable the slider so that value can't be changed -
sliderValue- Boolean, default = false used to display slider value adjacent to the slider -
bubble- Boolean, default = false used to display slider value as a bubble above the slider thumb, which follows the thumb -
sliderButtons- Boolean, default = false used to display buttons to increase or decrease the slider value by a fixed amount -
buttonInput- Boolean, default = false used to display input to vary thesliderButtonincrease or decrease amount, applied to both equally -
sliderTicks- Boolean, default = false used to display slider ticks at each step
- On slider change, event "sliderChanged" is emmited with load "value", which is the numerical value of the slider.
<template>
<iv-slider max=200 bubble=true sliderTicks=true>
</template>