ember-cli-notifications icon indicating copy to clipboard operation
ember-cli-notifications copied to clipboard

Can't dynamically set position

Open ghost opened this issue 8 years ago • 1 comments

It seems like the only way to currently set the position of the container is to pass it into the component itself as an attribute. I would like to be able to dynamically set the position by overriding the position attribute when creating my notification.

    this.get('notifications').info('Message goes here', {
      autoClear: false,
      position: 'bottom'
    });

I can see that you can set the position of the container dynamically by altering an attribute on the Object's template that it is inserted in here: https://github.com/stonecircle/ember-cli-notifications/blob/20e4fa1b3e5be1bea8383c18276a45d5995756d2/addon/components/notification-container.js#L13

However, this will change the position for all notifications. I would like all my default messages to appear at the top, but I would also like certain ones to appear at the bottom. Would we need to add another notification-container to the template that handles these?

Any thoughts?

ghost avatar Oct 27 '16 15:10 ghost

+1 Need this feature too.

andrei-sheina avatar Oct 29 '16 14:10 andrei-sheina