BX.UI.Dialogs.MessageBox.confirm
The method allows to quickly create a dialog with confirmation.
Note: When the dialog contains a multiline text or layout elements (images, checkboxes and etc.), this dialog must have an assigned title.
BX.UI.Dialogs.MessageBox.confirm("Message"); BX.UI.Dialogs.MessageBox.confirm("Message", () => {}); BX.UI.Dialogs.MessageBox.confirm("Message", () => {}, "Next"); BX.UI.Dialogs.MessageBox.confirm("Message", () => {}, "Next", () => {}); BX.UI.Dialogs.MessageBox.confirm("Message", "Title"); BX.UI.Dialogs.MessageBox.confirm("Message", "Title", () => {}); BX.UI.Dialogs.MessageBox.confirm("Message", "Title", () => {}, "Next", () => {});
Example
BX.UI.Dialogs.MessageBox.confirm( message: string | Element | Node, okCallback?: Function, okCaption?: string, cancelCallback?: Function ); //Method signature with specified dialog title BX.UI.Dialogs.MessageBox.confirm( message: string | Element | Node, title?: string, okCallback?: Function, okCaption?: string, cancelCallback?: Function );
© «Bitrix24», 2001-2024