Chrome应用在不创建窗口的情况下导航htmls [英] Chrome app navigate htmls without creating windows

查看:98
本文介绍了Chrome应用在不创建窗口的情况下导航htmls的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个Chrome打包的应用程序,我需要浏览我的htmls而不创建很多窗口,例如,如果用户单击一个按钮,它会在用户所在的同一窗口中打开html。



它甚至有可能吗?如果没有,有没有办法让Windows模式?因此,用户无法关闭另一个窗口而不关闭当前的内容? 解决方案

打包应用程序故意不支持导航。应用不在浏览器中,没有前进,后退或重新加载的概念。需要导航概念或模态对话框的应用程序应该使用支持该功能的用户界面框架。在基础知识中,您可以通过操纵DOM或通过使用CSS来动画和控制应用程序组件的可见性进行导航。


I'm creating a chrome packaged app, and I need to navigate my htmls without creating a lot of windows, like, if the user click one button, it opens the html in the same window the user are.

Is it even possible? If not, is there a way to make windows modal? So the user can't focus another window without closing the current?

解决方案

Packaged apps intentionally do not support navigation. Apps are not in a browser, there is no concept of forward, back, or reload. Applications which do require the concept of navigation, or modal dialogs, should use a user interface framework that supports that functionality. In fundamentals, you can navigate by manipulating the DOM or by using CSS to animate and control visibility of components of your app.

这篇关于Chrome应用在不创建窗口的情况下导航htmls的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆