I need to hide a dialog with a custom body. I can show it with
client.interface.trigger("showDialog", {title: "Title", template: "dialog.html"});
I can close the dialog with the 'x' at the top right, but I'd need to add my own OK button at the bottom. Clicking this will send a message back to the parent, but I don't know how to then close the dialog.
I also tried using
client.interface.trigger("showConfirm", {title: "Title", message: "Message"})
This shows the Cancel and OK buttons at the bottom, but I cannot specify my own content. Only a message.
How do I go about showing a dialog with my own content and also be able to close it when clicking OK?