hide-keyboard
TypeScript icon, indicating that this package has built-in type declarations

0.2.5 • Public • Published

hide-keyboard

This library is used to keep the keyboard hidden in an Ionic application when the focus is on a input.

Installation

To install this library, run:

$ npm i hide-keyboard

Use library into Ionic Project

Once you have installed, you can import library in any Ionic application by doing:

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

import { AppComponent } from './app.component';

// Import library
import { HideKeyboardModule } from 'hide-keyboard';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,

    // Specify library as an import
    HideKeyboardModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

Once your library is imported, you can use its directives in your Ionic application:

<!-- You can now use your library component in app.component.html -->
<ion-input hideKeyboard placeholder="Barcode" name="barcodeField" id="barcodeField" type="text"></ion-input>

License

MIT © Gregory Heyligen

Package Sidebar

Install

npm i hide-keyboard

Weekly Downloads

31

Version

0.2.5

License

MIT

Unpacked Size

33.3 kB

Total Files

17

Last publish

Collaborators

  • musabgosset
  • heylgreg
  • samirrahali