Developer
Get Support
Sign in
Get Support
Sign in
DOCUMENTATION
Cloud
Data Center
Resources
Sign in
Sign in
DOCUMENTATION
Cloud
Data Center
Resources
Sign in
Last updated Nov 18, 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: