Documentation

BX.PopupWindowManager

BX.PopupWindowManager - wrapper for BX.PopupWindow. It has two in-use specific features:

  • Repeated call of the create method - returns the already existing object.
  • Opening the dialog automatically closes another opened dialog, created via BX.PopupWindowManager.
Method Description Available from version
create(uniquePopupId, bindElement, params) Creates a dialog. Exactly the same as in BX.PopupMenu.
isPopupExists(uniquePopupId) Verifies if a dialog exists.
getCurrentPopup() Retrieves the current dialog.

Example

var popup = BX.PopupWindowManager.create("popup-message", null, {
    content: "Hello World!",
    darkMode: true,
    autoHide: true
});

popup.show();


© «Bitrix24», 2001-2024
Up