Vue-snotify, change position of async function

Asked

Viewed 43 times

0

Has a plugin for Toast notifications called Vue-snotify Vue-Snotify

It has a function that makes a request with Axios, and before completing the request shows a loading notification, and then one of the result of success or error. However she is in the position bottonRight, I wanted to change this position, I found nowhere.

 this.$snotify.async('Called with promise', 'Success async', () => new Promise((resolve, reject) => {
  setTimeout(() => resolve({
    title: 'Success!!!',
    body: 'We got an example success!',
    config: {
      closeOnClick: true
    }
  }), 2000);
}));
  • Just look at the documentation: https://artemsky.github.io/vue-snotify/documentation/api/enums.html#snotifyposition has several options

  • Vlw André, it worked

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.