We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
How to I get jBox to NOT close if I check a condition and I want them to go back and fix.
There is a "onClose", where I can confirm, but returning false doesn't work, it closes anyway. I use the "onCloseComplete" to finalize everything.
What must I do to prevent closing in the "onClose" event?
The text was updated successfully, but these errors were encountered:
Maybe you could use the methods this.disable() and this.enable(), see here: https://stephanwagner.me/jBox/methods#disable-and-enable
this.disable()
this.enable()
When you use this.disable(), jBox won't close or open anymore. Once the condition is met, you could use this.enable(); this.close() to close the jBox.
this.enable(); this.close()
If that doesn't work you could try using this.open() in onClose(), but that's very hacky.
this.open()
onClose()
Sorry, something went wrong.
@samcov try this.isOpen = false;, for example
this.isOpen = false;
onClose: function() { this.isOpen = false; if (someCond) { this.isOpen = true; } }
No branches or pull requests
How to I get jBox to NOT close if I check a condition and I want them to go back and fix.
There is a "onClose", where I can confirm, but returning false doesn't work, it closes anyway. I use the "onCloseComplete" to finalize everything.
What must I do to prevent closing in the "onClose" event?
The text was updated successfully, but these errors were encountered: