ionic-plugins-keyboard - Ionic Keyboard Plugin for Cordova

  •        0

Keyboard.hideKeyboardAccessoryBar=================Hide the keyboard accessory bar with the next, previous and done buttons. cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true); cordova.plugins.Keyboard.hideKeyboardAccessoryBar(false);Supported Platforms-------------------- iOSKeyboard.close=================Close the keyboard if it is open. cordova.plugins.Keyboard.close();Supported Platforms-------------------- iOS, AndroidKeyboard.disableScroll=================Disable native scrolling, useful if you are using JavaScript to scroll cordova.plugins.Keyboard.disableScroll(true); cordova.plugins.Keyboard.disableScroll(false);Supported Platforms-------------------- iOSKeyboard.show=================Force keyboard to be shown on Android. This typically helps if autofocus on a text element does not pop up the keyboard automatically cordova.plugins.Keyboard.show();Supported Platforms- Androidnative.keyboardshow=================This event fires when the keyboard will be shown window.addEventListener('native.keyboardshow', keyboardShowHandler); function keyboardShowHandler(e){ alert('Keyboard height is: ' + e.keyboardHeight); }Properties-----------keyboardHeight: the height of the keyboard in pixelsSupported Platforms-------------------- iOS, Androidnative.keyboardhide=================This event fires when the keyboard will hide window.addEventListener('native.keyboardhide', keyboardHideHandler); function keyboardHideHandler(e){ alert('Goodnight, sweet prince'); }Properties-----------NoneSupported Platforms-------------------- iOS, Android

https://github.com/driftyco/ionic-plugins-keyboard

Tags
Implementation
License
Platform

   




Related Projects