vuejs-timeless-clock

1.0.2 • Public • Published

vuejs-timeless-clock

VueJs Clock component with custom time props.

Installation

NPM:

npm install --save vuejs-timeless-clock

Props

Prop Type Usage
blink boolean Blink the colon separator (default true)
displaySeconds boolean Display the seconds count (default true)
time mixed Set the clock time (default Date object)
timezone string Set 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>

Readme

Keywords

Package Sidebar

Install

npm i vuejs-timeless-clock

Weekly Downloads

1

Version

1.0.2

License

ISC

Unpacked Size

381 kB

Total Files

11

Last publish

Collaborators

  • oh4d