Skip to content

RomanLevak/javascript-calendar-component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

to open the calendar just open the ./public/index.html file

or type
    >npm install
    >npm start

server will be working on port 3000

Usage

//the constructor takes the id of the 
//parent element and draws the calendar inside
	const calendar = new Calendar('calendar-wrap')

//set the date of the calendar you want
	calendar.setDateTo(next_date)

//redraw calendar to the next month
	calendar.moveRight()

//redraw to the prev month
	calendar.moveLeft()

//get the date the user has chosen
	calendar.selected_date

About

a simple javascript calendar class

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors