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

[Feature Request] Add ability to set default options by type #5

Open
ggedde opened this issue May 26, 2018 · 0 comments
Open

[Feature Request] Add ability to set default options by type #5

ggedde opened this issue May 26, 2018 · 0 comments

Comments

@ggedde
Copy link

ggedde commented May 26, 2018

So instead of just this:

Vue.use(VueIziToast, {
	position: 'topRight',
	timeout: 5000,
	closeOnEscape: true
})

I would like to do this:

Vue.use(VueIziToast, {
	success: {
		timeout: 3000,
	},
	error: {
		position: 'topCenter',
		timeout: 0,
		drag: false,
		closeOnEscape: false
	}
	position: 'topRight',
	timeout: 5000,
	closeOnEscape: true
})

I really don't like it when errors disappear as they may include important details. I may also want to display them in a more prominent position.

I could do this on a per instance basis, but that could be pretty tedious and could clutter up the code. Instead it would be nice to just be able to set all that on the Vue.Use Options.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants