I created a dialog using this
var d = new frappe.ui.Dialog({});
d.show()
to show dialog
d.hide()
to hide dialog
But how can we destroy the instance ?
I created a dialog using this
var d = new frappe.ui.Dialog({});
d.show()
to show dialog
d.hide()
to hide dialog
But how can we destroy the instance ?
This is JS.
I don’t think you can destroy declared var.
delete d
But it’s not really needed, the garbage collector will do that automatically