[英]Ionic : Hide keyboard smiley icon
在app.js中,
if (window.cordova && window.cordova.plugins.Keyboard) {
cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
cordova.plugins.Keyboard.disableScroll(true);
}
在我的HTML中,
<ion-footer-bar keyboard-attach class="bar-stable item-input-inset" style="margin-bottom: 50px; height: 60px; background-color: white;">
<input style="width: 100%;" type="text" placeholder="{{'text_input' | translate}}" ng-model="post.new"/>
</ion-footer-bar>
當鍵盤處於活動狀態時,我想在Android 5.0以上版本中隱藏笑臉按鈕,我該怎么做? 我不希望用戶在文本字段中輸入笑臉。
一個簡單的技巧是將輸入字段的輸入類型更改為其他內容。.我根據需要將輸入類型更改為url,並且可以正常工作。
<ion-footer-bar keyboard-attach class="bar-stable item-input-inset" style="margin-bottom: 50px; height: 60px; background-color: white;">
<input style="width: 100%;" type="url" placeholder="{{'text_input' | translate}}" ng-model="post.new"/>
</ion-footer-bar>
希望這可以幫助..
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.