0

I created a modal in the backend with the object ´Window ({})´ the problem and that creating it so I create a modal that must necessarily reload the content via ajax.

My code:

  Window.keepMultiModalWindow = true;
  const searchDoofinderDialog = new Window({
    draggable: true,
    closable: true,
    className: "magento",
    windowClassName: "popup-window",
    title: Translator.translate("Search"),
    resizable: true,
    width: 850,
    height: 500,
    zIndex: 999,
    hideEffect: Element.hide,
    showEffect: Element.show,
    destroyOnClose: true,
    showProgress: true,
    minimizable:    false,
    maximizable:    false,
    recenterAuto: false,
    id: 'searchDialog'
  })

Is there a way to create a modal, always using methods of the framework, but in such a way that I can close it and open it without losing the previous content?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.