揭示 Foundation 4 中的模态 [英] Revealing a Modal in Foundation 4
问题描述
如何在 Foundation 4 中以编程方式显示模态?
How do you Reveal a modal programmatically in Foundation 4?
在 Foundation 3 中,我们有一个易于使用的reveal() 方法.
In Foundation 3 we had the easy to use reveal() method.
您可以在 Foundation 4 中使用什么?请帮忙.
What can you use in Foundation 4? Please help.
推荐答案
我很确定你可以简单地在你的模态上使用 .foundation 方法来调用它的 'open' .. 类似:
I am pretty sure you can simply use the .foundation method on your modal to call 'open' on it.. Something like:
$('#myModal').foundation('reveal', 'open');
e:刚刚检查了文档,是的,就在那里:http://foundation.zurb.com/docs/components/reveal.html
e: Just checked the docs and yep, It's right there: http://foundation.zurb.com/docs/components/reveal.html
查找您还可以通过 JavaScript 打开和关闭 Reveal:"
Look for "You can also open and close Reveal via JavaScript:"
这篇关于揭示 Foundation 4 中的模态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!