Skip to content

Add an ability to globally set the default options #19

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

Open
RomeroMsk opened this issue Jun 12, 2018 · 1 comment
Open

Add an ability to globally set the default options #19

RomeroMsk opened this issue Jun 12, 2018 · 1 comment
Assignees

Comments

@RomeroMsk
Copy link

I didn't find a way to set the default options globally, so they are merged with the options passed to the component from template. It would be great to have such ability, something like this (using Vue Plugins):

import VueAutonumeric from 'vue-autonumeric';
Vue.use(VueAutonumeric, {
    onInvalidPaste: 'ignore'
});
@AlexandreBonneau
Copy link
Member

This is a great idea.
I'll see what I can do about that!

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