README
picker
Building block for a floating interactive popup
Installation
$ npm install popup-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 modifiedshow
popover show eventhide
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