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

        將我的自定義圖標添加到 ionic 2 actionSheet 的按鈕

        add my custom icons to ionic 2 actionSheet#39;s buttons(將我的自定義圖標添加到 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'>

                • 本文介紹了將我的自定義圖標添加到 ionic 2 actionSheet 的按鈕的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我找不到將自定義圖標添加到 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();
                   }
                  

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

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

                  推薦答案

                  ionic doc 似乎沒有提出任何本地方法來做到這一點.但是,有一種方法可以使用自定義類來實現.

                  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 中定義以下類:

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


                  編輯
                  另一種使用來自 icomoon 等字體的自定義圖標的方法:


                  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 中定義以下類:

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

                  這篇關于將我的自定義圖標添加到 ionic 2 actionSheet 的按鈕的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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)

                  <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>
                          • 主站蜘蛛池模板: 亚洲欧美日韩精品久久亚洲区 | 国产精品久久久久久久一区探花 | 免费视频99| 密室大逃脱第六季大神版在线观看 | 亚洲 欧美 综合 | 欧美一区二区三区在线 | 97久久精品午夜一区二区 | 黑人久久久 | 日韩高清一区 | 欧美xxxx色视频在线观看免费 | 国产精品久久久久久久久久 | 免费一区二区三区 | 国产日韩欧美在线播放 | 久久免费香蕉视频 | 日本精品久久久久久久 | 99精品国产一区二区青青牛奶 | 久久在线看 | 热re99久久精品国产99热 | 性色av香蕉一区二区 | 国产精品一区二区在线 | 亚洲电影在线播放 | 日韩伦理一区二区 | 精品国产视频 | 特黄小视频 | 日本超碰 | 国产视频观看 | 欧美一区二区三区视频 | 蜜臀久久| 成人在线免费观看 | 97avcc| www97影院 | h片在线观看网站 | 午夜视频在线观看网址 | 久色一区 | 操人视频在线观看 | www.99热这里只有精品 | 国产成人精品综合 | 久久久久国产精品一区二区 | 国产大片黄色 | 欧美一页 | 日韩在线电影 |