popup-picker

2.0.0 • Public • Published

picker

Building block for a floating interactive popup

Picker

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 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

Readme

Keywords

Package Sidebar

Install

npm i popup-picker

Weekly Downloads

0

Version

2.0.0

License

MIT

Unpacked Size

6.21 kB

Total Files

6

Last publish

Collaborators

  • pirxpilot