DialogActions: {
    [label: string]: DialogCallback;
}

Object to define actions for a dialog. The key is the label of the button and the value is the callback function to trigger when the button is clicked. The dialog id is is passed as parameter to the callback.

Type declaration

Example

Editor.UI.ShowDialog("Help Centre", new MEUILabel("Should we help?"), {
"Ok": function (dialogId) {
Editor.UI.CloseDialog(dialogId);
Editor.UI.ShowMessage("Helpful notification.");
},
"Cancel": function (dialogId) {
Editor.UI.CloseDialog(dialogId);
}
});

Generated using TypeDoc