Unique identifier that can be used to register or retrieve a specific API.
Example: mendix.EditorsAPI, mycompany.MyFunkyAPI
Adds an event listener for the specified event type.
A function that can be called to remove the event listener.
Closes an open modal dialog. This method should be called from inside the dialog UI itself.
When this method is used to close the dialog, the result of the dialog will be null
.
The unique identifier of the modal dialog to update.
This ID is passed to the dialog UI in the dialogId
query string parameter.
Closes an open modal dialog. This method should be called from inside the dialog UI itself. The result of the dialog will be the value passed to this method.
The unique identifier of the modal dialog to update.
This ID is passed to the dialog UI in the dialogId
query string parameter.
The result to return when the modal dialog is closed.
Displays a modal dialog to the user.
The UI entrypoint of the dialog is specified in the uiSpec
parameter.
This entrypoint is passed a unique identifier for the dialog in the dialogId
query string parameter.
The dialogId
can be used to identify the dialog when calling the update,
close, or closeWithResult methods.
An object containing information about the modal dialog, including its configuration and behavior.
The UI specification for rendering the modal dialog.
A promise that resolves with the result of the modal dialog when it is closed.
The result can be of any type, depending on the value passed by the UI when it
calls closeWithResult.
If the dialog is closed by clicking the close button ('X') in the title bar,
the promise resolves with the value null
.
Updates the state of an open modal dialog.
The unique identifier of the modal dialog to update.
This ID is passed to the dialog UI in the dialogId
query string parameter.
An object containing the state to update for the modal dialog.
API for showing modal dialogs.