Socket
Socket
Sign inDemoInstall

virtual-keyboard-workspace

Package Overview
Dependencies
114
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    virtual-keyboard-workspace

Angular Virtual Keyboard is an angular library that can be used to add a virtual keyboard on an input control. It is simple to use and can be implemented by just importing and adding a directive


Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Angular Virtual Keyboard

Angular Virtual Keyboard is an angular library that can be used to add a virtual keyboard on an input control. It is simple to use and can be implemented by just importing and adding a directive

Installation

Install ang-virtual-keyboard.

npm i ang-virtual-keyboard

ScreenShots

Keyboard Type 1

Other variants

Keyboard Type 1

Working Example

Features :

1. Three Layouts avaliable

    - Keyboard without side numpad  
    - Keyboard with side numpad  
    - Keyboard with only numpad  

2. Shuffle on key press
3. Mask on key press

Usage

  • Template Forms
<!-- Two way binding with property in which you want to store value -->
<input type="text" name="enterhere"
       [(ngModel)] = "inputString"
       [(appVirtualKeyboard)] = "inputString"
       [isKeyboardDirectiveActive] = "true" [kboardType]="'alphaNumericType2'">
  • Reactive Forms
<div class="setKeyBoardWidth">
  <input type="text" name="reactiveControl" [formControl]="reactiveControl" [appVirtualKeyboard]="''"
    (appVirtualKeyboardChange)="valueChange($event)" [isKeyboardDirectiveActive]="true"
    [kboardType]="'alphaNumericType2'">
</div>
 reactiveControl = new FormControl('');
 // Read value from event and set in formControl
   valueChange(e: string) {
    console.log(e);
    this.reactiveControl.setValue(e);
  }

Properties:

  • ngModel : For binding. Use ngModel or formControl
  • appVirtualKeyboard: inital value in case you have any to be prefilled when keyboard is triggered. For template forms use two binding with property. For reactive forms split initial input value and change output emitter as shown in example.
  • isKeyboardDirectiveActive: is angular virtual keyboard is active or not
  • kboardType : Currently 3 types are supported 'alphaNumericType1' - No side num pad (this is default layout) 'alphaNumericType2' - With side numpad 'numeric' - Only Numpad

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

FAQs

Last updated on 17 Jun 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc