times-slider

1.0.16 • Public • Published

npm version

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.

Package Sidebar

Install

npm i times-slider

Weekly Downloads

18

Version

1.0.16

License

MIT

Unpacked Size

263 kB

Total Files

6

Last publish

Collaborators

  • albazhenov