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

Unable to close programmatically #67

Open
liebsen opened this issue Dec 12, 2019 · 3 comments
Open

Unable to close programmatically #67

liebsen opened this issue Dec 12, 2019 · 3 comments

Comments

@liebsen
Copy link

liebsen commented Dec 12, 2019

Is there any api method to close any active instance? Thanks.

@Godofbrowser
Copy link
Owner

Godofbrowser commented Dec 13, 2019

Hello @martinfrith There is currently no api to close a particular window at the moment. But there is an undocumented method (this.$dialog.destroy()) that can be used to destroy the dialog's root component completely.

This looks like an interesting feature to add though. What's your use case if i may ask?

@liebsen
Copy link
Author

liebsen commented Dec 13, 2019

Thank you @Godofbrowser for your quick reply. I'll look into that. vuejs-dialog is a fabulous tool, thanks for creating it. Best wishes.

@Godofbrowser
Copy link
Owner

Thank you for using vuejs-dialog @martinfrith, glad you found it useful.

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