A npm version of laydate from laydate
npm
:
Install with npm i --save laydate
In Code
var laydate = ; //init date; //reset laydate;
and here is the options supported
elem: '#id' //需显示日期的元素选择器 event: 'click' //触发事件 format: 'YYYY-MM-DD hh:mm:ss' //日期格式 istime: false //是否开启时间选择 isclear: true //是否显示清空 istoday: true //是否显示今天 issure: true 是否显示确认 festival: true //是否显示节日 min: '1900-01-01 00:00:00' //最小日期 max: '2099-12-31 23:59:59' //最大日期 start: '2014-6-15 23:00:00' //开始日期 fixed: false //是否固定在可视区域 zIndex: 99999999 //css z-index { //选择好日期的回调 }
find more at http://www.layui.com/doc/modules/layer.html