-
Notifications
You must be signed in to change notification settings - Fork 98
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
How to Set Global Defaults #81
Comments
@cliftonlabrum , try a setup similar to this: import Vue from 'vue'
import Snotify, { SnotifyPosition } from 'vue-snotify'
const options = {
global: {
showProgressBar: false,
pauseOnHover: true,
newOnTop: true,
oneAtTime: true,
preventDuplicates: true,
titleMaxLength: 110,
bodyMaxLength: 1110,
timeout: 5000
},
toast: {
position: SnotifyPosition.rightTop
}
}
Vue.use(Snotify, options) basically, try changing from "defaults" to "global" obs.: i'm using Nuxtjs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm trying to set a couple global defaults so that all instances of my snotify popups have
timeout:0
andshowProgressBar: false
but I can't get it to work.In
main.js
of my Vue project, I have set up Snotify with the following:The popups work fine, but those global defaults don't apply anywhere. Does anyone know how to use
setDefaults
properly? Thanks!The text was updated successfully, but these errors were encountered: