ember-cli-calendar

0.0.3 • Public • Published

ember-cli-calendar

Calendar component for ember-cli apps

Usage

NPM

{{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, and location
    • If eventsMode is specified as multiResource, then each event should also specify a resource attribute, which has an id, and a name
  • gridMode can be to initially be either month or week, 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 your Brocfile.js

Credit

Thanks to Scott LePera for giving me some ideas on where to begin.

License

GPLv3

Package Sidebar

Install

npm i ember-cli-calendar

Weekly Downloads

3

Version

0.0.3

License

GPLv3

Last publish

Collaborators

  • bguiz