Skip to content

donaldwasserman/ember-add-calendar-button

Repository files navigation

ember-add-calendar-button

Add calendar entries with comfort and style.

Build Status

npm version

Compatibility

  • Ember.js v3.4 or above
  • Ember CLI v2.13 or above
  • Node.js v8 or above

Installation

ember install ember-add-calendar-button

Usage

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

Contributing

See the Contributing guide for details.

License

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •