Monaca Docs
Search…
⌃K

Cordova Ionic Keyboard Plugin

A keyboard plugin for Cordova apps.
To check the third party Cordova plugins, you need to create a custom build debugger (Android version or iOS version).

Demo

Enable the plugin in Monaca IDE

  1. 1.
    From the IDE menu, go to Config → Manage Cordova Plugins .
  2. 2.
    Click the Import Cordova Plugin button. Then, you can choose to import the plugin using a ZIP file or a URL/package name.

API references

This section describes some of the main functions used in our Demo. For complete API references, please refer to the repository.

show()

Show the keyboard.
Keyboard.show();
Keyboard.show() is not supported in the iOS due to the platform limitations. Therefore, please use focus() of the input element instead.
Example
//For Android
Keyboard.show();
//For iOS
inputElement.focus();

hide()

Hide the keyboard.
Keyboard.hide();
Example
Keyboard.hide();