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

config with miniToaster in nuxt app #160

Open
shahzaibanwar009 opened this issue Jan 21, 2019 · 1 comment
Open

config with miniToaster in nuxt app #160

shahzaibanwar009 opened this issue Jan 21, 2019 · 1 comment

Comments

@shahzaibanwar009
Copy link

shahzaibanwar009 commented Jan 21, 2019

config with miniToaster in nuxt app
I installed vue-notification plugin and configured it.it is working fine
i wanna add mini-toaster how to setup mini-toaster

@JPeer264
Copy link

JPeer264 commented Jan 25, 2019

That should make it:

miniToastr.init();

const toast = ({ title, message, type, timeout, cb }) => (
	miniToastr[type](message, title, timeout, cb)
);

const options = {
  success: toast,
  error: toast,
  info: toast,
  warn: toast,
};

Vue.use(VueNotifications, options);

https://github.com/se-panfilov/vue-notifications#all-together

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

2 participants