1.0.1 • Published 6 years ago
general-calendar v1.0.1
general-calendar ·
general-calendar is a calendar core.
Examples
We have several examples on the website. Here is the first one to get you started:
var oMonth = new GeneralCalendar({
startDate: '2018-04-12',
endDate: '2018-05-17',
});
var months = oMonth.getTotal();
This example will return array with date Objects, for example.
months = [
{
dates: [
{
date: "2018-04-01",
day: "01",
disabled: true,
enabled: false,
isNextMonth: true,
month: "04",
week: "日",
weekday: 0,
year: "2018"
}
{
date: "2018-04-02",
day: "02",
disabled: true,
enabled: false,
isNextMonth: true,
month: "04",
week: "一",
weekday: 1,
year: "2018"
}
],
title: "2018-04"
}
]
Installation
general-calendar is available as the general-calendar
package on npm.
Good First Issues
To help you get your feet wet and get you familiar with our contribution process, we have a list of good first issues that contain bugs which have a relatively limited scope. This is a great place to get started.
License
general-calendar is MIT licensed.