ember-awesome-notifications
Simple ideas & effects for Ember notifications
Last updated 3 years ago by rajasegar .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install ember-awesome-notifications 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.0.3                                ...           latest (3 years ago)

3 Versions

  • 0.0.3                                ...           3 years ago
  • 0.0.2                                ...           3 years ago
  • 0.0.1                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (3)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |