How do you Reveal a modal programmatically in Foundation 4?
In Foundation 3 we had the easy to use reveal() method.
What can you use in Foundation 4? Please
For programmatic (javascript) access the docs seem to only suggest launching via click event.
Add your Modal:
Awesome. I have it.
Your couch. It is mine.
Im a cool paragraph that lives inside of an even cooler modal. Wins
×
Set the trigger:
Click Me For A Modal
Activate trigger programmatically:
$('#my-trigger').trigger('click');
Admittedly it does seem like a work-around, maybe this is due to their heightened "lightweight/mobile-first" focus. Lets see what the next release brings.