Godofbrowser / vuejs-dialog

A lightweight, promise based alert, prompt and confirm dialog
351 stars 109 forks source link

Unable to close programmatically #67

Open liebsen opened 4 years ago

liebsen commented 4 years ago

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

Godofbrowser commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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