0.0.2 • Published 8 months ago

ng-geo-keyboard v0.0.2

Weekly downloads
-
License
-
Repository
-
Last release
8 months ago

ng-geo-keyboard

The ng-geo-keyboard library provides the GeoKeyboard directive, which maps English keyboard inputs to Georgian characters in input and textarea fields. It is simple, standalone, and highly configurable.

Features

  • Automatically converts English keyboard inputs to Georgian characters.
  • Allows optional inclusion of non-Georgian symbols.
  • Lightweight and easy to integrate into any Angular project.
  • Works seamlessly with both <input> and <textarea> elements.

Installation

Install the library via npm:

npm install ng-geo-keyboard

Usage

Basic Setup

Import the GeoKeyboard directive into your Angular application:

import { GeoKeyboard } from 'ng-geo-keyboard';

@Component({
  selector: 'app-root',
  standalone: true,
  imports: [GeoKeyboard],
})
export class AppComponent {}

Add the Directive

Use the geoKeyboard directive in your template:

<input type="text" geoKeyboard /> <textarea geoKeyboard></textarea>

Allow Non-Georgian Symbols

By default, the directive restricts input to Georgian characters. To allow mixed symbols, bind onlyGeoSymbols to false:

<input type="text" geoKeyboard [onlyGeoSymbols]="false" />
<textarea geoKeyboard [onlyGeoSymbols]="false"></textarea>

API

Inputs

  • onlyGeoSymbols (boolean, default: true):
    • true: Only Georgian characters are allowed.
    • false: Non-Georgian symbols are preserved.
0.0.2

8 months ago

0.0.1

8 months ago