Calendar.js a lightweight native JS calendar plugin

Source: Internet
Author: User
Tags date1

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.