打开“模态”基于 TabGroup 的应用程序中的窗口和关闭

发布于 2024-12-17 03:53:22 字数 344 浏览 0 评论 0原文

还应该指定,我正在使用 Titanium Mobile 开发这个。

我有一个选项卡式应用程序。我需要打开一个类似“模式”的窗口,以便允许用户输入一些设置。

例如,您单击选项卡组中的第三个选项卡。在继续创建视图之前,会运行一些逻辑来查看是否设置了设置。该设置未到位,因此会出现一个新窗口,要求您创建此设置。创建设置后,它将关闭并且视图继续呈现或刷新。

我一生都无法弄清楚这一点。我已经创建了窗口,将其动画化到当前选项卡中,甚至成功关闭了它。让视图刷新或重新加载是很困难的。此外,导航栏使用户能够导航回窗口以更改设置,这也是我不想要的。

有什么办法可以实现这一点吗?
我也有将用户登录到应用程序的相同需求。

Should Also have specified, I am developing this using Titanium Mobile.

I have a tabbed application. I have the need to open a "modal" like window for the purpose of allowing the user to enter some settings.

For example, you click the 3rd tab in the tabGroup. Some logic runs to see if a setting is set before continuing to create the view. The setting is not in place, so a new window animates in asking you to create this setting. After you create the setting, it closes and the view continues to render, or refreshes.

I cannot for the life of me figure this out. I have created the window, animated it into the current tab, and I have even successfully closed it. Getting the view to refresh or re-load is what is difficult. Also, the navigation bar offers the user the ability to navigate back to the window to change the setting, which I also do not want.

Any way to accomplish this?
I have the same need for logging the user into the application.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

定格我的天空 2024-12-24 03:53:22

使用此代码:

windowbject.open({modal:true});

这仅适用于 iOS。

如果您想刷新该模式窗口后面的视图,则必须向窗口添加“焦点”事件侦听器并在其中编写代码。当窗口获得焦点时,该代码将执行。
因此,当您关闭“模态”视图时,其后面的窗口将获得焦点。

我希望这会对您有所帮助。

Use this code:

windowbject.open({modal:true});

This will only works in iOS.

And you want to refresh view which is behind this modal window then you have to add "focus" eventlistener to the window and write code in it.This code will execute when ever window got focus.
So when you close "modal" view then window behind it will get focus.

I hope this will help you.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文