Dialog~Dialog

On This Page

    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
    3
    4
    5
    AP.dialog.create({
      key: 'my-module-key'
    }).on("close", function() {
      console.log("Dialog was closed");
    });

    Rate this page: