We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello,
In order to reduce coupling from external libs, I tried to wrap vue-snotify confirm action inside another plugin doing something like this
confirm
import Snotify, { SnotifyPosition } from 'vue-snotify' export default { install (Vue, options) { Vue.prototype.$myConfirm = (message, callback) => { Vue.use(Snotify, {}) Vue.$snotify.confirm('Confirm', '', { buttons: [ { text: 'Oui', action: (toast) => { this.$snotify.remove(toast.id) callback() } }, {text: 'Non', action: (toast) => this.$snotify.remove(toast.id)} ] }) } } }
but this would not work as Vue.$snotify is undefined. I've tried some other ways with the same result.
Vue.$snotify
Is there a way to work around that issue ?
Thanks
The text was updated successfully, but these errors were encountered:
I noticed the typescript example which provided a way I could have followed here
Unfortunately, SnotifyService isn't exported anymore so that approach doesn't work.
Sorry, something went wrong.
No branches or pull requests
Hello,
In order to reduce coupling from external libs, I tried to wrap vue-snotify
confirm
action inside another plugin doing something like thisbut this would not work as
Vue.$snotify
is undefined. I've tried some other ways with the same result.Is there a way to work around that issue ?
Thanks
The text was updated successfully, but these errors were encountered: