Javascript 我怎样才能最好地管理多个 twitter bootstrap 模式对话框

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/8736299/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-24 07:16:01  来源:igfitidea点击:

How can I best manage multiple twitter bootstrap modal dialogs

javascriptjquerytwitter-bootstrap

提问by hofimax

I am currently working on a web project that makes heavy use of twitter bootstrap modal dialogs. In essence, the user is shown a lot of modal dialogs with forms consecutively. The order of these dialogs is based on the values he provides on each form (= dialog).

我目前正在开发一个大量使用 twitter bootstrap 模态对话框的 web 项目。本质上,用户会连续看到许多带有表单的模态对话框。这些对话框的顺序基于他在每个表单(= 对话框)上提供的值。

How can I best manage the state of the different modals and write filters for the order of them showing up?

我怎样才能最好地管理不同模式的状态并为它们出现的顺序编写过滤器?

Thanks.

谢谢。

回答by ahmeij

I use this extension to bootstrap to work with modal forms:

我使用这个扩展来引导以处理模态表单:

https://github.com/Nikku/jquery-bootstrap-scripting

https://github.com/Nikku/jquery-bootstrap-scripting

see a demo of the features here:

在此处查看功能的演示:

http://nikku.github.com/jquery-bootstrap-scripting/

http://nikku.github.com/jquery-bootstrap-scripting/

Pretty awesome and makes it easy to have modal forms that are effectively wizards (which it sounds like you are describing)

非常棒,并且可以轻松拥有有效向导的模态表单(听起来像是您在描述)

回答by Zane

Lately I have been utilizing the extended Bootstrap Modal below. Works really well and easy enough to integrate to any bootstrap site

最近我一直在使用下面的扩展 Bootstrap Modal。工作得很好,很容易集成到任何引导站点

https://github.com/jschr/bootstrap-modal/

https://github.com/jschr/bootstrap-modal/

Demo of the modals options -

模态选项的演示 -

http://jschr.github.com/bootstrap-modal/

http://jschr.github.com/bootstrap-modal/