ember-cli-calendar
v0.0.3
Published
Calendar component for ember-cli apps
Downloads
7
Readme
ember-cli-calendar
Calendar component for ember-cli apps
Usage
{{ember-calendar
eventsMode=eventsMode
gridMode='month'
allEvents=eventList
}}
eventsMode
controls 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=true
has been deprecated
allEvents
is an array of event objects, each of which can have optional string attributes:displayTime
,title
, andlocation
- If
eventsMode
is specified asmultiResource
, then each event should also specify aresource
attribute, which has anid
, and aname
- If
gridMode
can be to initially be eithermonth
orweek
, 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 momentjs
in 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