1.0.7 • Published 7 years ago

laydate v1.0.7

Weekly downloads
71
License
ISC
Repository
github
Last release
7 years ago

A npm version of laydate from laydate

Install with npm:

npm i --save laydate

In Code

<input name="mydate" id="mydate">
var laydate = require("laydate");

//init date
laydate({
elem: '#mydate'
});

//reset 
laydate.reset();

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
      choose: function(dates){ //选择好日期的回调
     
      }
    }

find more at http://www.layui.com/doc/modules/layer.html

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago