久久久久久久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:在標(biāo)簽按鈕中使用圖片

        Ionic 2 : Use picture in tab button(Ionic 2:在標(biāo)簽按鈕中使用圖片)
          <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:在標(biāo)簽按鈕中使用圖片的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

                  問(wèn)題描述

                  我在我的應(yīng)用程序中使用離子標(biāo)簽,我想在標(biāo)簽按鈕中使用圖片.我想動(dòng)態(tài)設(shè)置這張圖片.

                  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.

                  就我而言,我有一個(gè)與不同用戶關(guān)聯(lián)的帳戶.我想根據(jù)所選用戶更改我的標(biāo)簽圖片.

                  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.

                  我有這個(gè):

                  我想要這個(gè):

                  我的標(biāo)簽中的代碼:

                      <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>
                  

                  我不知道該怎么做,一個(gè)想法?

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

                  推薦答案

                  終于找到解決方案了!我只是寫在創(chuàng)建的 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]);
                        }
                    }
                  

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

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

                  相關(guān)文檔推薦

                  Use IScroll in Angular 2 / Typescript(在 Angular 2/Typescript 中使用 IScroll)
                  anime.js not working in Ionic 3 project(Anime.js 在 Ionic 3 項(xiàng)目中不起作用)
                  Ionic 3 - Update Observable with Asynchronous Data(Ionic 3 - 使用異步數(shù)據(jù)更新 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 中,如何創(chuàng)建使用 Ionic 組件的自定義指令?)
                  Use ViewChild for dynamic elements - Angular 2 amp; ionic 2(將 ViewChild 用于動(dòng)態(tài)元素 - 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>
                            主站蜘蛛池模板: 精品国产一区二区三区久久久蜜月 | 久久久久久久av麻豆果冻 | 久久精品国产a三级三级三级 | 免费国产一区 | 久草热8精品视频在线观看 午夜伦4480yy私人影院 | 久久精品二区亚洲w码 | 欧美成人精品一区二区男人看 | 黄色毛片在线播放 | 精品欧美一区免费观看α√ | 欧美日韩在线电影 | 亚州激情| 成人a免费 | 91精品久久久久久久久中文字幕 | 求个av网址 | 久草新在线 | 99精品视频一区二区三区 | 欧美精品tv| 亚洲综合视频 | 一级片免费视频 | www.狠狠干 | 国产精品久久国产精品99 gif | 国产成人精品一区二区三区四区 | 在线观看免费观看在线91 | 中文字幕在线免费观看 | 在线播放国产一区二区三区 | 久久午夜剧场 | 国产一级片免费视频 | 国产福利91精品一区二区三区 | 亚洲精品电影网在线观看 | 免费啪啪 | 久久久久久国产精品久久 | 黄色大片免费观看 | 青青草在线视频免费观看 | 久久伊人亚洲 | 国产福利91精品 | 国产精品免费视频一区 | 亚洲一级二级三级 | 国产亚洲精品美女久久久久久久久久 | 国产1页| 天天综合天天 | 国产精品国产a级 |