Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/anthonyshort/calendar
Calendar date-picker for Component
https://github.com/anthonyshort/calendar
Last synced: 24 days ago
JSON representation
Calendar date-picker for Component
- Host: GitHub
- URL: https://github.com/anthonyshort/calendar
- Owner: anthonyshort
- Created: 2012-11-26T21:41:44.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2012-11-26T21:43:29.000Z (almost 12 years ago)
- Last Synced: 2024-04-15T03:16:19.919Z (7 months ago)
- Language: JavaScript
- Homepage:
- Size: 105 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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