Developer
Documentation
Resources
Get Support
Sign in
Developer
Get Support
Sign in
DOCUMENTATION
Cloud
Data Center
Resources
Sign in
Developer
Sign in
DOCUMENTATION
Cloud
Data Center
Resources
Sign in
Last updated Oct 14, 2025

Dialog~Dialog

Methods

on (event, callback)

Registers a callback for a dialog event.

Parameters

NameTypeDescription
event

String

The dialog event to listen for. Valid options are "close".

callback

function

The function to be invoked.

Example

1
2
AP.dialog.create({
  key: 'my-module-key'
}).on("close", function() {
  console.log("Dialog was closed");
});

Rate this page: