ionic-framework - 是否可以选择在 ionic inappbrowser 中显示网站标题而不是 url?
问题描述
$window.open(encodeURI(ENV.liveSite), '_blank', 'location=yes,clearcache=yes,clearsessioncache=yes,hideurlbar=yes,toolbarcolor=#e85147');
解决方案
还有另一个可用的插件是 ThemeThemeableBrowser
Func(){
const options: ThemeableBrowserOptions = {
statusbar: {
color: '#ffffffff'
},
toolbar: {
height: 44,
color: '#f0f0f0ff'
},
title: {
color: '#003264ff',
showPageTitle: true
}
}
const browser: ThemeableBrowserObject = this.themeableBrowser.create('https://ionic.io', '_blank', options);
}
推荐阅读
- java - 使用 Hibernate 的 Spring / Gradle 项目发出关于无法连接到数据库的警告(给我的合作伙伴的错误)
- python - 从用户输入创建 python excel 单元格
- unity3d - 如何将 WebGLInput.captureAllKeyboardInput 设置为 false?
- html - 如何将图像设置为背景
- go - 如何知道为什么在 go.mod 中设置了特定的包版本?
- c++ - Gstreamer-1.0 错误(没有这样的文件或目录)
- ios - Swift 在 UITableViewCell 中以正确的方式使用 UISlider?
- google-cloud-dataflow - 结束对用 Python2 编写的数据流管道的支持
- javascript - setState in useEffect 以状态为条件
- javascript - 有没有办法将数值设置为等于不同的数值?