Instructions for use:
Need to introduce plugins calendar.js/calendar.min.js
Need to introduce CALENDAR.CSS style sheet, you can customize the skin you want
This calendar plugin supports CMD modularity
Call as follows:
Xvdate ({
' Targetid ': ' date1 ',//time to write the ID of the object
' Triggerid ': [' date1 ', ' dateBtn1 '],//the object ID of the triggering event
' Alignid ': ' DatesWrap1 ',//Calendar Alignment Object
' Format ': '-',//Time format default ' Yyyy-mm-dd HH:MM:SS '
' min ': ' 2014-09-20 10:00:00 ',//MAX time
' Max ': ' 2014-10-30 10:00:00 '//min time
});
Parameter description: Targetid: Date written to Object ID, cannot be empty
Triggerid: The object ID of the triggering event, or default to Targetid if not set
Alignid: The alignment datum of the Calendar box, which defaults to Targetid if not set
HMS: When the seconds and minutes are turned on, the default value is ' on ', which means seconds (2014-09-20 10:00:00), ' off ' is the ' off ' mode (2014-09-20)
Format: The default value for date formats is '-' (2014-09-20), '/' means (2014/09/20)
Min: Minimum time limit, Min's time format and previous time format remain
Max: Maximum time limit, Max's time format and previous time format remain
ZIndex: Maximum time limit, calendar box hierarchy, default 9999
If you need to use modularity in a module that you need to rely on to introduce
such as: define (' mod1 ', [],function (Require, exports, module) {
var xvdate = require ("Xvdate");
})
You can click here for details.
Calendar.js a lightweight native JS calendar plugin