久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

    1. <legend id='p9qVU'><style id='p9qVU'><dir id='p9qVU'><q id='p9qVU'></q></dir></style></legend>

      • <bdo id='p9qVU'></bdo><ul id='p9qVU'></ul>
      <tfoot id='p9qVU'></tfoot>

      <small id='p9qVU'></small><noframes id='p9qVU'>

    2. <i id='p9qVU'><tr id='p9qVU'><dt id='p9qVU'><q id='p9qVU'><span id='p9qVU'><b id='p9qVU'><form id='p9qVU'><ins id='p9qVU'></ins><ul id='p9qVU'></ul><sub id='p9qVU'></sub></form><legend id='p9qVU'></legend><bdo id='p9qVU'><pre id='p9qVU'><center id='p9qVU'></center></pre></bdo></b><th id='p9qVU'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='p9qVU'><tfoot id='p9qVU'></tfoot><dl id='p9qVU'><fieldset id='p9qVU'></fieldset></dl></div>

        Ionic 2:在標簽按鈕中使用圖片

        Ionic 2 : Use picture in tab button(Ionic 2:在標簽按鈕中使用圖片)
          <bdo id='SaSof'></bdo><ul id='SaSof'></ul>

          <i id='SaSof'><tr id='SaSof'><dt id='SaSof'><q id='SaSof'><span id='SaSof'><b id='SaSof'><form id='SaSof'><ins id='SaSof'></ins><ul id='SaSof'></ul><sub id='SaSof'></sub></form><legend id='SaSof'></legend><bdo id='SaSof'><pre id='SaSof'><center id='SaSof'></center></pre></bdo></b><th id='SaSof'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='SaSof'><tfoot id='SaSof'></tfoot><dl id='SaSof'><fieldset id='SaSof'></fieldset></dl></div>
            <legend id='SaSof'><style id='SaSof'><dir id='SaSof'><q id='SaSof'></q></dir></style></legend>
          1. <tfoot id='SaSof'></tfoot>

            <small id='SaSof'></small><noframes id='SaSof'>

                <tbody id='SaSof'></tbody>

                • 本文介紹了Ionic 2:在標簽按鈕中使用圖片的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我在我的應用程序中使用離子標簽,我想在標簽按鈕中使用圖片.我想動態設置這張圖片.

                  I use ion-tabs in my App and I want to use an picture in a tab-button. I want to set this picture dynamicly.

                  就我而言,我有一個與不同用戶關聯的帳戶.我想根據所選用戶更改我的標簽圖片.

                  In my case, I have an account with different users linked to it. I want to change my tab picture depending of the selected user.

                  我有這個:

                  我想要這個:

                  我的標簽中的代碼:

                      <ion-tabs tabsHighlight="false">
                        <ion-tab [root]="HomePage" 
                                 tabsHideOnSubPages="true"
                                 tabIcon="checkbox"
                                 tabTitle="A faire"
                                 tabBadge="5"
                                 tabBadgeStyle="notif">
                        </ion-tab>
                        <ion-tab [root]="ToComePage"
                                 tabsHideOnSubPages="true"
                                 tabIcon="time" tabTitle="A venir"
                                 tabBadge="0"
                                 tabBadgeStyle="notif">
                        </ion-tab>
                        <ion-tab [root]="HistoricPage"
                                 tabsHideOnSubPages="true"
                                 tabIcon="book"
                                 tabTitle="Historique">
                        </ion-tab>
                        <ion-tab [root]="MenuPage"
                                 tabsHideOnSubPages="true"
                  //I want to delete this tab Icon and replace it by a picture.
                                 tabIcon="menu"
                                 tabTitle="Menu">
                        </ion-tab>
                      </ion-tabs>
                  

                  我不知道該怎么做,一個想法?

                  I don't know how to do that, an idea ?

                  推薦答案

                  終于找到解決方案了!我只是寫在創建的 DOM 中.

                  Finally I find a solution ! I just write in the created DOM.

                  我喜歡這樣:

                  updateAccountTab() : void {
                        let array = document.getElementsByClassName('tabbar');
                        let tabbar = array[0];
                        let element = tabbar.childNodes[tabbar.childElementCount-1];
                        if(element) {
                            element.removeChild(element.childNodes[1]);
                            let img = document.createElement("img");
                            img.setAttribute("class", "tab-icon-custom tab-button-icon icon icon-md");
                            img.setAttribute("src", this.pdata.user.profile_thumbnail);
                            element.insertBefore(img, element.childNodes[1]);
                        }
                    }
                  

                  這篇關于Ionic 2:在標簽按鈕中使用圖片的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Use IScroll in Angular 2 / Typescript(在 Angular 2/Typescript 中使用 IScroll)
                  anime.js not working in Ionic 3 project(Anime.js 在 Ionic 3 項目中不起作用)
                  Ionic 3 - Update Observable with Asynchronous Data(Ionic 3 - 使用異步數據更新 Observable)
                  Angular 2: file not found on local .json file(Angular 2:在本地 .json 文件中找不到文件)
                  In Ionic 2, how do I create a custom directive that uses Ionic components?(在 Ionic 2 中,如何創建使用 Ionic 組件的自定義指令?)
                  Use ViewChild for dynamic elements - Angular 2 amp; ionic 2(將 ViewChild 用于動態元素 - Angular 2 amp;離子2)
                • <tfoot id='ruZ43'></tfoot>

                  <small id='ruZ43'></small><noframes id='ruZ43'>

                        <bdo id='ruZ43'></bdo><ul id='ruZ43'></ul>

                          • <i id='ruZ43'><tr id='ruZ43'><dt id='ruZ43'><q id='ruZ43'><span id='ruZ43'><b id='ruZ43'><form id='ruZ43'><ins id='ruZ43'></ins><ul id='ruZ43'></ul><sub id='ruZ43'></sub></form><legend id='ruZ43'></legend><bdo id='ruZ43'><pre id='ruZ43'><center id='ruZ43'></center></pre></bdo></b><th id='ruZ43'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='ruZ43'><tfoot id='ruZ43'></tfoot><dl id='ruZ43'><fieldset id='ruZ43'></fieldset></dl></div>
                              <tbody id='ruZ43'></tbody>

                          • <legend id='ruZ43'><style id='ruZ43'><dir id='ruZ43'><q id='ruZ43'></q></dir></style></legend>
                            主站蜘蛛池模板: 人人干超碰| a级免费观看视频 | 日本一区视频在线观看 | 日韩免费一区二区 | 欧美成人精品一区二区男人看 | 91精品国产综合久久久久 | www.免费看片.com | 日本中文字幕在线观看 | 女人牲交视频一级毛片 | 看a级黄色毛片 | 日本精品视频 | a级黄色毛片免费播放视频 国产精品视频在线观看 | 国产美女久久 | 99久久婷婷国产综合精品电影 | 国产精品永久在线观看 | 男女下面一进一出网站 | 久久国产精品视频 | 国产精品视频不卡 | 久久久久久久久国产成人免费 | 91麻豆精品国产91久久久更新资源速度超快 | 久久99精品久久久久子伦 | 久久久久久国产精品免费免费 | 国产在线资源 | 国产精品欧美一区喷水 | 中文字幕av第一页 | www.久久 | 欧美一级黄色免费 | 99久久久无码国产精品 | 精品国产黄a∨片高清在线 成人区精品一区二区婷婷 日本一区二区视频 | 欧美日韩免费一区二区三区 | 91成人在线视频 | 国产午夜一级 | 91精品国产乱码久久久久久久久 | 欧美视频一区二区三区 | 特黄特黄a级毛片免费专区 av网站免费在线观看 | 成人毛片网 | 久久中文字幕一区 | 国产精品久久久久久久久久免费看 | 超碰在线影院 | 国产精品国产精品国产专区不片 | 亚洲欧美中文日韩在线v日本 |