JSPM

vue-cool-timer

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q9960F
  • License ISC

Count down timer made with vue js

Package Exports

  • vue-cool-timer

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (vue-cool-timer) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

vue-cool-timer

A count down timer made with vue js

Install

npm install vue-cool-timer --save

Usage

import VueCoolTimer from 'vue-cool-timer'

new Vue({
  template: '<VueCoolTimer :config="config"></VueCoolTimer>',
  data () {
    return {
        config: {
                endTime: "Aug 14, 2019 21:00:00",
                textColor: '#ffffff',
                background: 'linear-gradient(to right, #545454, #3f3f3f, #2a2a2a)',
                showHeader: true,
                format:"dd-hh-mm-ss"
        }
    }
  },
  components: { VueCoolTimer }
});

Configuration

Property Details
endTime the end time of the count down
textColor color of the timer texts
background background of the timer texts
showHeader boolean, determines to show/hide headers
format format of the timer. Use only what you need. Like if you want to get only days and hours, use 'dd-hh'

License

MIT