bootstrap-notify icon indicating copy to clipboard operation
bootstrap-notify copied to clipboard

element setting help

Open ChicagoDave opened this issue 7 years ago • 4 comments

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.

ChicagoDave avatar Sep 26 '17 23:09 ChicagoDave

nothing?

totomtornado avatar May 23 '18 08:05 totomtornado

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' });

EAZeeE avatar Jul 30 '18 13:07 EAZeeE

Whatever you set gets passed into a JQuery selector so '#some-id' or '.some-class' etc.

brian-codes avatar Aug 21 '19 10:08 brian-codes

After set passing into a JQuery selector, try using position setting as relative.

mehmetakify avatar Nov 02 '19 05:11 mehmetakify