• About the JavaScript API
  • Context
  • Cookie
  • Dialog
  • Events
  • Flag
  • History
  • Host
  • Iframe
  • Inline dialog
  • Jira
  • Navigator
  • Request
  • Scroll position
  • User

Dialog~Dialog

Methods

on (event, callback)

Registers a callback for a dialog event.

Parameters

NameTypeDescription
eventString

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

callbackfunction

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");
});

  • System status
  • Privacy
  • Developer Terms
  • Trademark
  • Cookie Preferences
  • © 2019 Atlassian