/// <summary> /// Displays an information dialog with the given message, an INFO icon, an OK button. If a callback is given, it is called after the info box has been closed by the user with one of the buttons. /// /// <pre> /// sap.m.MessageBox.information("This message should appear in the information message box", { /// title: "Information", // default /// onClose: null // default /// styleClass: "" // default /// initialFocus: null // default /// textDirection: sap.ui.core.TextDirection.Inherit // default /// }); /// </pre> /// /// The callback is called with the following signature * <pre> /// function (oAction) /// </pre> /// /// The information dialog opened by this method is processed asynchronously. Applications have to use <code>fnCallback</code> to continue work after the user closed the information dialog /// </summary> /// <param name="vMessage">Message to be displayed in the alert dialog. The usage of sap.core.Control as vMessage is deprecated since version 1.30.4.</param> /// <param name="mOptions">Other options (optional)</param> public extern static void information(string vMessage, sap.m.MessageBox.NotifyOptions mOptions);
/// <summary> /// Displays a warning dialog with the given message, a WARNING icon, an OK button. If a callback is given, it is called after the warning box has been closed by the user with one of the buttons. /// /// <pre> /// sap.m.MessageBox.warning("This message should appear in the warning message box", { /// title: "Warning", // default /// onClose: null // default /// styleClass: "" // default /// initialFocus: null // default /// textDirection: sap.ui.core.TextDirection.Inherit // default /// }); /// </pre> /// /// The callback is called with the following signature * <pre> /// function (oAction) /// </pre> /// /// The warning dialog opened by this method is processed asynchronously. Applications have to use <code>fnCallback</code> to continue work after the user closed the warning dialog /// </summary> /// <param name="vMessage">Message to be displayed in the alert dialog. The usage of sap.core.Control as vMessage is deprecated since version 1.30.4.</param> /// <param name="mOptions">Other options (optional)</param> public extern static void warning(string vMessage, sap.m.MessageBox.NotifyOptions mOptions);
/// <summary> /// Displays a confirmation dialog with the given message, a QUESTION icon, an OK button and a Cancel button. If a callback is given, it is called after the confirmation box has been closed by the user with one of the buttons. /// /// <pre> /// sap.m.MessageBox.confirm("This message should appear in the confirmation", { /// title: "Confirm", // default /// onClose: null // default /// styleClass: "" // default /// initialFocus: null // default /// textDirection: sap.ui.core.TextDirection.Inherit // default /// }); /// </pre> /// /// The callback is called with the following signature /// /// <pre> /// function(oAction) /// </pre> /// /// where oAction is set by one of the following three values: 1. sap.m.MessageBox.Action.OK: OK (confirmed) button is tapped. 2. sap.m.MessageBox.Action.Cancel: Cancel (unconfirmed) button is tapped. 3. null: Confirm dialog is closed by calling <code>sap.m.InstanceManager.closeAllDialogs()</code> /// /// The confirmation dialog opened by this method is processed asynchronously. Applications have to use <code>fnCallback</code> to continue work after the user closed the confirmation dialog /// </summary> /// <param name="vMessage">Message to be displayed in the alert dialog. The usage of sap.core.Control as vMessage is deprecated since version 1.30.4.</param> /// <param name="mOptions">Other options (optional)</param> public extern static void confirm(string vMessage, sap.m.MessageBox.NotifyOptions mOptions);