This is a custom dialog

Set the "confirm" attribute of ZGDialog to a function.

In our example, we set it to "myConfirm"

The function is then called when the confirm button below is clicked.