A TimeSlider Vue component

TimeSlider

A TimeSlider Vue component. Compatible with Vue 2.x

Demo

To view online and parameters usage visit repo github-pages: https://dhruuva.github.io/time-slider/

Install

npm install times-slider --save
<script>
 import TimeSlider from 'times-slider'
export default {
	name: 'TestPage',
	components: {
		TimeSlider
	},
	data () {
		return {
			curTime: "00:00"
		}
	},
	methods:{
		shiftTime(a) {
			this.curTime=a
		}

	}
}
</script>

Or use directly from a CDN

<script src="https://unpkg.com/vue"></script>
<script src="https://unpkg.com/times-slider"></script>
<div id="app">
<p>{{curTime}}</p>
<div class="svgResponsive">
	<time-slider v-on:currentTime="shiftTime($event)"></time-slider>
</div>
</div>
<script>
	new Vue({
		el: '#app',
		components: {
		  	TimeSlider
		},
		data: () => ({
			curTime: "00:00"
		}),
		methods:{
		  	shiftTime(a) {
		      this.curTime = a;
		    },
		}

	})
</script>

try it

Go first-look by Aleksey Bazhenov (@dhruuva) on CodePen.

Download Details:

Author: Dhruuva

Demo: https://dhruuva.github.io/time-slider/

Source Code: https://github.com/Dhruuva/time-slider

#vue #vuejs #javascript

A TimeSlider Vue component
12.25 GEEK