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

    • <bdo id='ZvmFJ'></bdo><ul id='ZvmFJ'></ul>
  • <small id='ZvmFJ'></small><noframes id='ZvmFJ'>

        <tfoot id='ZvmFJ'></tfoot>

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

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

        將我的自定義圖標(biāo)添加到 ionic 2 actionSheet 的按鈕

        add my custom icons to ionic 2 actionSheet#39;s buttons(將我的自定義圖標(biāo)添加到 ionic 2 actionSheet 的按鈕)
      3. <tfoot id='4rZjR'></tfoot>
        • <bdo id='4rZjR'></bdo><ul id='4rZjR'></ul>

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

                • <legend id='4rZjR'><style id='4rZjR'><dir id='4rZjR'><q id='4rZjR'></q></dir></style></legend>
                    <tbody id='4rZjR'></tbody>

                  <small id='4rZjR'></small><noframes id='4rZjR'>

                • 本文介紹了將我的自定義圖標(biāo)添加到 ionic 2 actionSheet 的按鈕的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

                  問(wèn)題描述

                  我找不到將自定義圖標(biāo)添加到 ionic 2/3 actionSheet 的方法.

                  I couldn't find a way to add my custom icon to ionic 2/3 actionSheet.

                  presentActionSheet() {
                     let actionSheet = this.actionSheetCtrl.create({
                       title: 'Mode',     
                       buttons: [
                         {
                           text: 'Add to Y' ,
                           role: 'destructive',
                           icon:"my_icon",
                           cssClass:"yoy",
                           handler: () => {
                             console.log('Destructive clicked');
                           }
                         },   
                         {
                           text: 'Cancel',
                           role: 'cancel',
                           handler: () => {
                             console.log('Cancel clicked');
                           }
                         }
                       ],
                  
                     });
                  
                     actionSheet.present();
                   }
                  

                  如何將我自己的自定義圖標(biāo)添加到操作表按鈕?

                  How can I add my own custom icons to the actionsheet buttons?

                  推薦答案

                  ionic doc 似乎沒(méi)有提出任何本地方法來(lái)做到這一點(diǎn).但是,有一種方法可以使用自定義類(lèi)來(lái)實(shí)現(xiàn).

                  The ionic doc doesn't seem to propose any native way to do this. However, there is a way to achieve it using a custom class.

                     let actionSheet = this.actionSheetCtrl.create({
                       title: 'Mode',     
                       buttons: [
                         {
                           text: 'Add to Y',
                           // vvvvv set a custom class that will be used to display the icon
                           cssClass: "class_used_to_set_icon",
                           handler: () => {
                             console.log('Add to Y clicked');
                           }
                         }
                       ],
                  
                     });
                  
                     actionSheet.present();
                  

                  然后在您的 src/app/app.scss 中定義以下類(lèi):

                  Then in your src/app/app.scss define the following class:

                  .class_used_to_set_icon {
                    // I'd suggest to have the icon in src/assets (eg ../assets/icon/favicon.ico)
                    background-image: url("path/to/your/icon") !important;
                    // to properly position the icon:
                    background-repeat: no-repeat !important;
                    background-position: 10px 10px !important;
                    // to indent the text to the right of the icon:
                    padding-left: 70px !important;
                  }
                  


                  編輯
                  另一種使用來(lái)自 icomoon 等字體的自定義圖標(biāo)的方法:


                  EDIT
                  Another way using custom icons from a font like icomoon:

                     let actionSheet = this.actionSheetCtrl.create({
                       title: 'Mode',     
                       buttons: [
                         {
                           text: 'Add to Y',
                           // vvvvv set the custom icon class and a custom class to then improve display
                           cssClass: "icon-drink actionSheet_withIcomoon",
                           handler: () => {
                             console.log('Add to Y clicked');
                           }
                         }
                       ],
                  
                     });
                  
                     actionSheet.present();
                  

                  然后在您的 src/app/app.scss 中定義以下類(lèi):

                  Then in your src/app/app.scss define the following class:

                  // display the icon at the right size
                  .actionSheet_withIcomoon { font-size: 2.4rem !important; }
                  // correct the font dimensions and positioning of the text
                  .actionSheet_withIcomoon .button-inner {
                    font-family: "Roboto", "Helvetica Neue", sans-serif;
                    font-weight: bold;
                    padding-left: 52px;
                    margin-top: -20px;
                    font-size: 1.6rem !important;
                  }
                  

                  這篇關(guān)于將我的自定義圖標(biāo)添加到 ionic 2 actionSheet 的按鈕的文章就介紹到這了,希望我們推薦的答案對(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)

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

                    <tbody id='MiEli'></tbody>
                  <legend id='MiEli'><style id='MiEli'><dir id='MiEli'><q id='MiEli'></q></dir></style></legend>

                        <i id='MiEli'><tr id='MiEli'><dt id='MiEli'><q id='MiEli'><span id='MiEli'><b id='MiEli'><form id='MiEli'><ins id='MiEli'></ins><ul id='MiEli'></ul><sub id='MiEli'></sub></form><legend id='MiEli'></legend><bdo id='MiEli'><pre id='MiEli'><center id='MiEli'></center></pre></bdo></b><th id='MiEli'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='MiEli'><tfoot id='MiEli'></tfoot><dl id='MiEli'><fieldset id='MiEli'></fieldset></dl></div>
                          • <bdo id='MiEli'></bdo><ul id='MiEli'></ul>
                            <tfoot id='MiEli'></tfoot>
                          • 主站蜘蛛池模板: 91大神在线资源观看无广告 | 日韩视频一区二区 | 久久亚洲春色中文字幕久久久 | 天天看片天天干 | 99精品欧美一区二区三区综合在线 | 欧美精品在线一区二区三区 | 91在线观看| 久草免费视 | 久久久久国产一区二区三区四区 | 一级a性色生活片久久毛片 午夜精品在线观看 | 亚州精品天堂中文字幕 | 精精国产视频 | 国产一区二区精华 | 91精品国产综合久久婷婷香蕉 | 国产日韩精品一区 | 久草在线| 欧美视频免费在线观看 | 人人艹人人 | 欧美在线视频一区二区 | 日屁视频| 中文字幕色站 | 一区二区三区四区国产 | 国产精品久久久久久久午夜 | 天天操夜夜爽 | 91久色 | 欧美视频一级 | 国产免费又色又爽又黄在线观看 | 91在线影院 | 在线观看黄免费 | 91国产在线视频在线 | 亚洲高清在线播放 | 免费在线a视频 | 日本精品视频在线观看 | a级毛片毛片免费观看久潮喷 | 日韩视频一区二区三区 | 男人天堂色 | 国产精品美女在线观看 | 国产一区久久久 | 91色综合| 在线观看日韩精品视频 | 韩日一区|