Base solution for your next web application
BLACK FRIDAY
From Nov 21
To Dec 1
XXDAYS : XXHRS : XXMIN : XXSEC
SAVE UP TO$3K
Also valid for the
existing customers!
Open Closed

How do i pass data to a modal so what it can use that data #3511


0
NPECAdmin created

The below code in my index.js opens the modal Balloon1Modal when the button with id="Balloon1ModalButton" is clicked. I need to pass some data from my index.js to my modal so that it can use that data to populate the table inside my modal. What additions can i make to the below code so that i can pass a variable as a parameter?

(function () {
            var _balloon1Modal = new app.ModalManager({
                viewUrl: abp.appPath + 'Mpa/DealerDashboard/Balloon1Modal',
                scriptUrl: abp.appPath + 'Areas/Mpa/Views/DealerDashboard/_Balloon1Modal.js',
                modalClass: 'Balloon1Modal'
            });

            $('#Balloon1ModalButton').click(function (e) {
                e.preventDefault();
                _balloon1Modal.open();
            });
        })();

Thank you


1 Answer(s)
  • 0
    alirizaadiyahsi created

    Hi,

    Could you check this conversation? #3499