1.0.1 • Published 9 years ago

code42day-picker v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

picker

Building block for a floating interactive popup

Picker

Installation

$ npm install code42day-picker

or

$ component install code42day/picker

Example

var Picker = require('picker');
new Picker(el, new Clock())
  .on('change', function(v) {
    var value = (v.hour || '0') + ':' + (v.minute || '00');
  });

Events

  • change (time) - when content item g selected time is modified

  • show popover show event

  • hide popover hide event

API

new Picker(el, item)

Create a new Picker attached to el input DOM node item - interactive element such as clock or calendar

item

Direct access to item passed in constructor

License

MIT