angular-toastr icon indicating copy to clipboard operation
angular-toastr copied to clipboard

Explicit 3rd parameter doesn't override default behavior which declared in toasrConfig file

Open greybax opened this issue 8 years ago • 2 comments

My toastrConfig.ts has

export function toastrConfig(toastrConfig: any): void {
 ...
  toastrConfig.positionClass = 'toast-top-right';
...
}

but for one my particular case I just want to show toastr bottom-right:

toastr.info('<input type="checkbox" checked> Success!', 'With HTML', {
  positionClass: 'toast-bottom-right';
});

but toasts still show on top right

greybax avatar May 25 '17 18:05 greybax

Sorry, I never got around to be able to override positions at the toast level but only at container level.

That would require toastr to generate multiple containers at once.

Foxandxss avatar May 25 '17 18:05 Foxandxss

+1 for this feature ( @Foxandxss If possible, can i do this feature and create a pull request? )

rajathms avatar Aug 14 '17 08:08 rajathms