BX.UI.Dialogs.MessageBox.show
The method passes dialog settings. Static method.
Examples
Method call example
BX.UI.Dialogs.MessageBox.show( { message: "Text that clarifies the purpose of this popup message, located here.", modal: true, buttons: BX.UI.Dialogs.MessageBoxButtons.OK_CANCEL, onOk: function(messageBox) { console.log("onOk"); messageBox.close(); }, onCancel: function(messageBox) { console.log("onCancel"); messageBox.close(); }, } );
Arbitrary user of buttons
BX.UI.Dialogs.MessageBox.show( { message: ` <label class="ui-ctl ui-ctl-checkbox"> <input type="checkbox" class="ui-ctl-element"> <div class="ui-ctl-label-text">delete settings and app data</div> </label> `, title: "Are you sure that you want to delete the application?", buttons: [ new BX.UI.Button( { color: BX.UI.Button.Color.DANGER, text: "Delete" } ), new BX.UI.CancelButton() ], } );
© «Bitrix24», 2001-2024