Documentation

BX.UI.Dialogs.MessageBox.create

The method create - gets links to dialog object.

Example

const messageBox = BX.UI.Dialogs.MessageBox.create(
{
    message: "Are you sure you want to delete this file?",
    title: "Confirm deletion",
    buttons: BX.UI.Dialogs.MessageBoxButtons.OK_CANCEL,
    onOk: function(messageBox)
    {
        console.log("onOk");
        messageBox.close();
    },
}
);

messageBox.show();

Or create a BX.UI.Dialogs.MessageBox class object.

© «Bitrix24», 2001-2024
Up