【问题标题】:Is there an option to show website title instead of url in ionic inappbrowser?是否可以选择在 ionic inappbrowser 中显示网站标题而不是 url?
【发布时间】:2020-04-22 02:28:51
【问题描述】:

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

【问题讨论】:

    标签: ionic-framework inappbrowser


    【解决方案1】:

    还有另一个可用的插件是 Theme ThemeableBrowser

    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);
      }
    

    reference

    【讨论】:

    • 您的回答很有帮助,但请告诉我如何在 ionic 版本 1 中使用它,而不是 typescript。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-08-25
    • 2016-03-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多