Home > Web Front-end > JS Tutorial > body text

Kalendae-Detailed explanation of the use of JavaScript date selection and calendar controls (picture)

黄舟
Release: 2017-03-16 15:01:56
Original
3696 people have browsed it

Kalendae-JavaScript Detailed explanation of the use of date selection and calendar controls

##Kalendae is a date selection control and calendar component completely based on JavaScript. It is worth mentioning that Kalendae does not rely on any third-party JS script library. Instead, it uses native JavaScript to implement such a powerful date selection control.

Kalendae has the following characteristics:

  • Completely based on JavaScript, no dependencies, no

    jQuery.

  • Customizable skins, basically no

    pictures, completely relying on CSS files to customize the skin.

  • Date selection supports single day and multi-day range.

  • Customize the displayed date number.

  • can be placed directly on the page and used as a

    calendar control.

  • For the selected date, you can customize the date format.

  • Provides some commonly used date conversion

    functions.

Some renderings of Kalendae:

# #Kalendae

Usage example

Code:
new Kalendae(document.body, {
	months:1,
	mode:'single',
	selected:Kalendae.moment().subtract({M:1})
});

new Kalendae({
	attachTo:document.body,
	months:2,
	mode:'single',
	selected:Kalendae.moment().subtract({M:1})
});

new Kalendae({
	attachTo:document.body,
	months:3,
	mode:'single',
	selected:Kalendae.moment().subtract({M:1})
});
Copy after login

The above is the detailed content of Kalendae-Detailed explanation of the use of JavaScript date selection and calendar controls (picture). For more information, please follow other related articles on the PHP Chinese website!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!