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

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

Open
greybax opened this issue May 25, 2017 · 2 comments

Comments

@greybax
Copy link

greybax commented May 25, 2017

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

@Foxandxss
Copy link
Owner

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.

@rajathms
Copy link

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

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

No branches or pull requests

3 participants