Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change overlay close. #261

Open
ghost opened this issue Feb 24, 2018 · 0 comments
Open

Change overlay close. #261

ghost opened this issue Feb 24, 2018 · 0 comments

Comments

@ghost
Copy link

ghost commented Feb 24, 2018

I want to change overlay close option depend on some logic, but when the modal is open. Is there way to do that ? I have a button and when user clicks on it it opens the modal llke this:
` var regModal = new Custombox.modal({
content: {..... },
overlay:{.... }
});

$('#regBtn').click(function(e){
    e.preventDefault();
    regModal.open();
});`

The modal has a button and when is clicked the overlay option close must be true or false, depends on the logic. I tried with:
regModal.options.overlay.close = false;, but this will be set after the current modal is closed and new modal is open (for the next modal, but not current).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants