ons-keyboard-active

Conditionally display content depending on if the software keyboard is visible or hidden. This component requires cordova and that the com.ionic.keyboard plugin is installed.

Usage #

<div ons-keyboard-active>
  This will only be displayed if the software keyboard is open.
</div>
<div ons-keyboard-inactive>
  There is also a component that does the opposite.
</div>

See also #

Attributes #

Name Type
Default Value
Description
ons-keyboard-active The content of tags with this attribute will be visible when the software keyboard is open. Optional
ons-keyboard-inactive The content of tags with this attribute will be visible when the software keyboard is hidden. Optional

Discussion #