2.0.5 • Published 2 years ago

calendar-npm v2.0.5

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

Calendar-npm

This project is intended to be consumed for all of type java script projects.

Build Status npm version

Table of contents

Installation

$ npm install calendar-npm

Usage

 const calendar = new Calendar()

Arguments

TypeDefault valueexample
Date {Object}new Date()const calendar = new Calendar(new Date(2022,7,15))

Methods

Methodargument
toDateDate {Object}
toPrevMonthnone
toNextMonthnone
toNextYearnone
toPrevYearnone

Example:

const calendar = new Calendar();
const btn = document.getElementByTabName("button")[0];

btn.onclick = () => {
    // calendar.toDate(new Date(2025,5,16));
    // calendar.toPrevMonth();
    // calendar.toNextMonth();
    // calendar.toNextYear();
    // calendar.toPrevYear();
};
import Calendar, { ICalendar, IDay } from "calendar-npm";

const calendar: ICalendar = new Calendar();

Object

keysvalues
currentDateDate {Object}
selectedDateDate {Object}
monthsstring
weekDaysstring
daysDay{Object}

Built With

  • Gagik-arch

Author

1.2.0

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago

1.9.0

2 years ago

1.8.0

2 years ago

1.7.0

2 years ago

1.6.0

2 years ago

1.5.0

2 years ago

1.4.0

2 years ago

1.3.0

2 years ago

2.0.3

2 years ago

2.0.2

2 years ago

2.0.5

2 years ago

2.0.4

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

0.0.1

4 years ago