首页 > 解决方案 > 是否可以选择在 ionic inappbrowser 中显示网站标题而不是 url?

问题描述

$window.open(encodeURI(ENV.liveSite), '_blank', 'location=yes,clearcache=yes,clearsessioncache=yes,hideurlbar=yes,toolbarcolor=#e85147');

标签: ionic-frameworkinappbrowser

解决方案


还有另一个可用的插件是 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);
  }

参考


推荐阅读