Skip to content

anthonyshort/calendar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

calendar

Simple calendar date-picker. The component does not come with a template or styles, you create it yourself. Alternatively you can use anthonyshort/calendar-skeleton as a template.

Dependencies

  • component/moment
  • component/jquery
  • component/emitter
  • component/bind

Installation

$ component install anthonyshort/calendar

API

You'll need a template to use the calendar. A template is just a string of HTML so you can create this however you want.

Set the template on the Calendar either on the prototype or send it in the options when creating a calendar:

var Calendar = require('calendar');
var template = require('calendar-skeleton');

// On the prototype
Calendar.prototype.template = template;

// or in the options
var picker = new Calendar({ template: template });

License

MIT

About

Calendar date-picker for Component

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published