Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
component.css
component.js
component.json
dependencies.html
example.html
picture.jpg
readme.md

readme.md

j-TimePicker

  • supports dark mode

Configuration:

  • secodns {Boolean} optional, enables seconds (default: false)
  • ampm {Boolean} optional, enables 12 hours time (default: false)

The component must be called manually or works with j-Input component automatically. This component is a singleton.

  • important add the component under <body> element

Usage

var opt = {};

// opt.offsetX {Number}    : adds X offset (default: 0)
// opt.offsetY {Number}    : adds Y offset (default: 0)
// opt.seconds {Boolean}   : shows seconds (default: false)
// opt.ampm    {Boolean}   : shows 12 hours time (default: false)

opt.value = new Date();
// or
// opt.value = 'path.to.date' (in this case you don't need to declare "opt.callback")

opt.element = YOUR_ELEMENT;

opt.callback = function(date) {
	console.log(date);
};

// opt.close {Function} optional, this function can determine closing of TimePicker

SETTER('timepicker', 'show', opt);

Author