Skip to content

Gagik-arch/calendar-npm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Type Default value example
Date {Object} new Date() const calendar = new Calendar(new Date(2022,7,15))

Methods

Method argument
toDate Date {Object}
toPrevMonth none
toNextMonth none
toNextYear none
toPrevYear none

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

keys values
currentDate Date {Object}
selectedDate Date {Object}
months [string]
weekDays [string]
days Day{Object}

Built With

  • Gagik-arch

Author

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published