Skip to content
This repository has been archived by the owner on Oct 25, 2019. It is now read-only.

britishgas-engineering/ember-add-calendar-button

Repository files navigation

ember-add-calendar-button

Add calendar entries with comfort and style.

Example usage:

{{#calendar-button event onClick=(action "myActionHere") as |b|}}
  {{#b.google}}
    Add To Google
  {{/b.google}}
  {{#b.ical}}
    Add to Anything
  {{/b.ical}}
{{/calendar-button}}

The event object can be an EmberObject or pojo.

  let event = Ember.object.create({
    start: moment(), //moment or string
    end: moment().add(4, 'hours'),
    title: 'Meeting with Tomster',
    description: 'Coffee to discuss Tomster and Zoey\'s upcoming raise',
    location: '1234 North Port, Nowhere USA'
  })

Note: Totally stole a lot of the code from here

Installation

  • git clone <repository-url> this repository
  • cd ember-calendar-button
  • npm install

Running

Running Tests

  • npm test (Runs ember try:each to test your addon against multiple Ember versions)
  • ember test
  • ember test --server

Building

  • ember build

For more information on using ember-cli, visit https://ember-cli.com/.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published