A lightweight, useful date&time selector
<input type="text" data-id="datetime-selector">
var dts = new dateTimeSelector();
- el: the element of DOM node to initialize the plugin
- type: type of plugin, it can be set as
t-basic
,t-simple
,t-range
,t-combined
andnull
so far. - time: customize time for initialization
- maxData: limit the number of selected item,
-1
is default and means no limitation. - onScroll: callback function for scrolling.
- onChange: callback function for selecting time.
- onCancel: callback function for close selector
var dts = new dateTimeSelector();
ds.getTime();
More methods will be added later.
- Support 4 type of selector.
- Support basic functions of a time selector