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
How to pass options to globally configured toast module? I could pass the message but not the options.
In my nuxt file I have:
toast: { position: 'top-center', register: [ { name: 'error', message: (payload: any) => payload.message, options: { type: 'error', icon: 'error', className: 'toastCustom--error', position: (payload: any) => payload.position ? payload.position : 'top-center', duration: 5000 } } ] }
and passed the option like this
this.$toast.global.error({ message: 'test' }, { position: 'bottom-center' })
What should I do?
The text was updated successfully, but these errors were encountered:
Anther question would be how to set globally a duration for both registered and non-registered toasts
Sorry, something went wrong.
Has anyone figured this out?
Passing options via modules sections works fine
modules: [ ['@nuxtjs/toast', { duration: 5000 }] ],
No branches or pull requests
How to pass options to globally configured toast module?
I could pass the message but not the options.
In my nuxt file I have:
and passed the option like this
What should I do?
The text was updated successfully, but these errors were encountered: