bootstrap-notify
bootstrap-notify copied to clipboard
element setting help
It's unclear to me how to use the element: setting. The default is 'body', but how do I change it to something else. I want notifications to appear within a container div, not as a part of the entire page.
nothing?
I was also wondering about this. I found a way using ViewChild:
HTML: /<div #elementToSpecify/>/
COMPONENT: @ViewChild ('elementToSpecify') myElement;
NOTIFY: $.notify({ // options message: 'Hope This Helps' }, { // settings element: this.myElement.nativeElement, type: 'info' });
Whatever you set gets passed into a JQuery selector so '#some-id' or '.some-class' etc.
After set passing into a JQuery selector, try using position setting as relative.