We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac550b3 commit f9ceceeCopy full SHA for f9cecee
package.json
@@ -2,7 +2,7 @@
2
"name": "@impvis/components",
3
4
5
- "version": "1.4.9",
+ "version": "1.5.0",
6
7
8
src/components/Slider/Slider.vue
@@ -11,7 +11,7 @@
11
<iv-button id="playButton" v-if="playButton" @click="togglePlay">
12
<span v-if="isPlaying">Pause</span>
13
<span v-if="!isPlaying">
14
- <span v-if="value>=max">Reset</span>
+ <span v-if="value>=max" @click="emitSliderOnReset">Reset</span>
15
<span v-else>Play</span>
16
</span>
17
</iv-button>
@@ -183,7 +183,10 @@ export default {
183
stopSlider() {
184
clearInterval(this.timer);
185
this.isPlaying = false;
186
- }
+ },
187
+ emitSliderOnReset(){
188
+ this.$emit("sliderChanged",this.init_val);
189
+ }
190
},
191
computed:{
192
cssColor(){
0 commit comments