1.0.2 • Published 5 years ago

vuejs-timeless-clock v1.0.2

Weekly downloads
23
License
ISC
Repository
github
Last release
5 years ago

vuejs-timeless-clock

VueJs Clock component with custom time props.

Installation

NPM:

npm install --save vuejs-timeless-clock

Props

PropTypeUsage
blinkbooleanBlink the colon separator (default true)
displaySecondsbooleanDisplay the seconds count (default true)
timemixedSet the clock time (default Date object)
timezonestringSet the clock timezone

Example

<template>
  <timeless-clock :displaySeconds="false"/>
  
  <timeless-clock :displaySeconds="false" 
                  timezone="Europe/Paris" 
                  time="moment"/>
                  
  <timeless-clock :displaySeconds="false"
                  timezone="Europe/Paris"
                  :time="getMomentTime()"/>
                  
  <timeless-clock time="23:33:43"/>
  
  <timeless-clock :time="new Date()"/>
</template>

<script>
import moment from 'moment'
import TimelessClock from 'vuejs-timeless-clock'

export default {
  components: { TimelessClock },
  
  methods: {
      getMomentTime() {
          return moment();
      }
  }
}
</script>
1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.0.1

5 years ago