Cordova Ionic Keyboard Plugin

Keyboard plugin for Cordova apps.

Demo

Enable the Plugin in Monaca IDE

  1. From the IDE menu, go to Config → Manage Cordova Plugins .

  2. Click on Import Cordova Plugin button. Then, you can choose to import the plugin using a ZIP file or URL/Package Name.

API References

In this page, we only describe some main APIs used in our Demo. For a complete API references, please refer to here.

show()

Show the keyboard.

Keyboard.show();
Keyboard.show() is not supported in iOS due to platform limitations. Therefore, please use focus() of input element instead.

Example

//For Android
Keyboard.show();

//For iOS
inputElement.focus();

hide()

Hide the keyboard.

Keyboard.hide();

Example

Keyboard.hide();