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

Change Position of Toast #14

Closed
Ckearns1210 opened this issue May 20, 2016 · 5 comments
Closed

Change Position of Toast #14

Ckearns1210 opened this issue May 20, 2016 · 5 comments

Comments

@Ckearns1210
Copy link

I see you have the css for different positions, but it isn't an option I can pass to toast options?

@codyjdalton
Copy link

codyjdalton commented Jun 7, 2016

@Ckearns1210 Has this issue been resolved?

@Ckearns1210
Copy link
Author

@codyjdalton it is not clear from the documentation, but you can change the position of the toast as follows:
<ng2-toasty position="top-right"></ng2-toasty>

@akserg
Copy link
Owner

akserg commented Jun 7, 2016

Or via ToastyConfig:

bootstrap(HelloApp, [
ROUTER_PROVIDERS, FORM_PROVIDERS,
provide(LocationStrategy, { useClass: HashLocationStrategy }),
ToastyService, ToastyConfig,
provide(ToastyConfig, {useFactory: () => {
return () => {
let cfg = new Engine();
// bottom-right, bottom-left, top-right, top-left, top-center, bottom-center
cfg.position = 'top-right';
return cfg;
}
}})
])
.catch(err => console.error(err));

@rodhoward
Copy link

Hi,
I have a use case where I would like warnings to be front and centre but general info and wait notices to be bottom-left. It doesn't seem to update the location once its set. Ideally this could be configured per toast? Or is there a way to have two Toasty services running one top one bottom?

Cheers
Rod

@akserg
Copy link
Owner

akserg commented Jan 19, 2017

Hi Rod,
I have a similar feature request. Please have a look here #58

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

4 participants