I’m trying to use the
chrome: true, so I get the ‘Submit’ and ‘Cancel’ buttons by default. However, I can’t bind to them. The documentation says that both
Dialog.on(event, callback) and
DialogButton.bind(callback) are being deprecated in favor of
AP.events.on("dialog.message", callback). However, when I use AP.events the only event I see firing is ‘dialog.close’ with no arguments (I monitor events via the
AP.events.onAny). So I can’t distinguish whether the dialog was submitted or canceled.
How do I bind to the ‘Submit’ button of