Skip to content
/ thyme Public

a lightweight, minimal, and present-focused calendar renderer

Notifications You must be signed in to change notification settings

samccone/thyme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Thyme

a lightweight, minimal, and present-focused calendar renderer

Build Status

API

  // renders a new calendar initialized at the current month
  myCalendar = new Thyme(document.getElementById('#cal'));

  // jump to and render next/prev month
  myCalendar.nextMonth();
  myCalendar.prevMonth();

  // gets a specific day's dom node (in the current month)
  myCalendar.getDay('11'); // returns dom element

  // get's the currently displayed month and year
  myCalendar.renderedMonth(); // returns { month: 5, year: 2013 }

  // jump and render the containing dates month
  myCalenday.currentDate = <date> //must be a valid date object
  myCalendar.render();

TESTING

$ npm install mocha
$ mocha test

About

a lightweight, minimal, and present-focused calendar renderer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published