Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't dynamically set position #115

Open
ghost opened this issue Oct 27, 2016 · 1 comment
Open

Can't dynamically set position #115

ghost opened this issue Oct 27, 2016 · 1 comment

Comments

@ghost
Copy link

ghost commented Oct 27, 2016

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?

@andrei-sheina
Copy link

+1 Need this feature too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants