1.0.56 • Published 7 years ago

ngx-virtual-keyboard v1.0.56

Weekly downloads
50
License
ISC
Repository
github
Last release
7 years ago

ngx-virtual-keyboard

MIT licensed npm version

Quick Start

Prerequisites

  • Git
  • Angular (>= 4)
  • NPM (>= 3)

Install

Step 1: Install ngx-virtual-keyboard

# npm
npm i --save ngx-virtual-keyboard

Step 2: Import the module

import { NgxVirtualKeyboardModule }  from 'ngx-virtual-keyboard';

@NgModule({
  ...
  imports: [
    ...
    NgxVirtualKeyboardModule,
  ],
  ...
})
export class AppModule { }

Step 3: Component

import { Component } from '@angular/core';

@Component({
  ...
})

export class NgxVirtualKeyboardComponent implements OnInit {
  private layout: any = 'alphanumeric';
  // You can create your own layout
  // private layout: string = [
  //  ['1', '2', '0', 'Backspace'],
  //  ['3', '4', '6', 'Enter'],
  //  ['a', 'b', 'c']
  // ]'

  constructor() { }

  ngOnInit() {}

}

Step 4: Simple usage example

<input type="text" value=""
  [ngx-virtual-keyboard]="true"
  [ngx-virtual-keyboard-layout]="layout"
  [ngx-virtual-keyboard-disabled]="false"
/>
AttributeDescription
[ngx-virtual-keyboard]Required to initialize Virtual Keyboard to specified input. Can take boolean true or false to activate
[ngx-virtual-keyboard-layout]Used layout on keyboard, following keyboards are defaults that you can use alphanumeric, azerty, extended, numeric, phone
[ngx-virtual-keyboard-disabled]Disable keyboard keys if true

Demo

https://vtllr.github.io/ngx-virtual-keyboard/

Contribute

ngx-virtual-keyboard is Open Source, If you are interested in helping, please read the following:

Pull Request Guidelines

When in doubt, keep your pull requests small. To give a PR the best chance of getting accepted, do not bundle more than one "feature" or bug fix in one PR. Doing so makes it very hard to accept it if one of the fixes has issues.

It's always best to create two smaller PRs than one big one.

Style

Follow .editconfig

Thanks

To do

  • run demo on github pages
1.0.56

7 years ago

1.0.55

7 years ago

1.0.54

7 years ago

1.0.53

7 years ago

1.0.52

7 years ago

1.0.51

7 years ago

1.0.5

7 years ago

1.0.45

7 years ago

1.0.44

7 years ago

1.0.43

7 years ago

1.0.42

7 years ago

1.0.41

7 years ago

1.0.4

7 years ago

1.0.31

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago