0.0.3 • Published 11 years ago
ember-cli-calendar v0.0.3
ember-cli-calendar
Calendar component for ember-cli apps
Usage
{{ember-calendar
eventsMode=eventsMode
gridMode='month'
allEvents=eventList
}}eventsModecontrols how events are displayed underneath the calendar"simple": a list of events for the selected day is displayed"multiResource": a list of events for the selected day, grouped by resource, is displayed- If none of the above, no events will be displayed
- Note that this is a breaking change,
showEvents=truehas been deprecated
allEventsis an array of event objects, each of which can have optional string attributes:displayTime,title, andlocation- If
eventsModeis specified asmultiResource, then each event should also specify aresourceattribute, which has anid, and aname
- If
gridModecan be to initially be eithermonthorweek, user can toggle between them
Emitted actions
selectDate(date)
Occurs whenever the user selects a different date on the calendar.
selectEvent(event)
Occurs whenever the user selects an event from the event list
Dependencies
moment:- Run
bower install momentjsin the root folder of your ember-cli project - Add
app.import('vendor/momentjs/moment.js');to yourBrocfile.js
- Run
Credit
Thanks to Scott LePera for giving me some ideas on where to begin.
License
GPLv3
