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] Vue instance method support #5884

Closed
weihongyu12 opened this issue Dec 13, 2018 · 1 comment
Closed

[Feature Request] Vue instance method support #5884

weihongyu12 opened this issue Dec 13, 2018 · 1 comment
Labels
duplicate The issue has already been reported

Comments

@weihongyu12
Copy link

Problem to solve

In many cases, we need to make some information in the js file, but we can't use the vue component at this time, because the component is not yet mounted.

We need some support for instance methods so that we can call them in Vue components and JS files.

In Vuetify, the components that need to be supported are:

VDialog

VSnackbar

Proposed solution

In the JS file, we can use it like this:

import { VDialog, VSnackbar } form 'vuetify';

VDialog(options);
VSnackbar(options);

In the Vue component, we can use it like this:

this.$dialog(options);
this.$snackbar(options);
@KaelWD KaelWD added the duplicate The issue has already been reported label Dec 13, 2018
@KaelWD
Copy link
Member

KaelWD commented Dec 13, 2018

Duplicate of #2384, #3037

@KaelWD KaelWD closed this as completed Dec 13, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Dec 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
duplicate The issue has already been reported
Projects
None yet
Development

No branches or pull requests

2 participants