2.0.1 • Published 3 months ago

popup-clock v2.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
3 months ago

NPM version Build Status Dependency Status

popup-clock

Time picker ui component for popup-clock

Click here to see online demo.

Installation

$ npm install popup-clock

Example

var Timepicker = require('popup-clock');
var el = document.querySelector('[name=time]');
new Timepicker(el, options)
  .clock
  .on('change', function(v) {
    el.value = (v.hour || '0') + ':' + (v.minute || '00');
  });

API

new Timepicker(el)

Create a new Timepicker attached to el input DOM node

Timepicker.clock

clock reference

License

MIT

2.0.1

3 months ago

2.0.0

5 years ago

1.3.2

7 years ago