0.0.3 • Published 7 years ago

ember-awesome-notifications v0.0.3

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

ember-awesome-notifications

Simple ideas & effects for Ember notifications

Demo

Coming soon.

Installation

ember install ember-awesome-notifications

Usage

Inject the service

notifications: Ember.inject.service('ea-notification'),

Notification container in your templates

The notification container will work even without wormhole, but still we recommend it to be on the safer side for any UI breakages.

{{#ember-wormhole to="ea-notification-container"}}
  {{ea-notification-container}}
{{/ember-wormhole}}

Trigger the notification

let _options = {
  effect: 'scale'
  layout: 'growl',
  type: 'info',
  message : '<p>This is just a simple notice. Everything is in order and this is a <a href="#">simple link</a>.</p>',
};

this.get('notifications').addNotification(_options);

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/.