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

Allow positioning relative to parent container #48

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

threewordphrase
Copy link

I found myself a little surprised that setting the parent container didn't actually make the notification appear relative to that container. We needed the notifications to appear closer to the user's point of focus (a particular form or element on the page) and I figured it might be useful addition to the project. Usage:

notify.config({
parentalPosition: true,
container: $('#order-detail')
});

left / center / right work as expected.

@threewordphrase
Copy link
Author

Bump... Looking forward to using a non-forked version in my next project :)

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

Successfully merging this pull request may close these issues.

1 participant