0.0.15 • Published 4 years ago

persian-seperated-input v0.0.15

Weekly downloads
203
License
MIT
Repository
github
Last release
4 years ago

PersianSeperatedInput

GIPHY

Create seperated input which support persian numbers for iphone numeric keyboard. This library was generated with Angular CLI version 9.1.13.

Installation

npm install --save persian-seperated-input

Usage

Add PersianSeperatedInputModule to imports app.module.ts like

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

import { AppComponent } from './app.component';
import {PersianSeperatedInputModule} from 'persian-seperated-input'
@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    PersianSeperatedInputModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

Add component to your page:

  <psi-input (onInputChange)="onInputChange($event)" [digitOnly]="true"></psi-input>

Updating component value using setValue method

  <psi-input #myInput (onInputChange)="onInputChange($event)"
  [digitOnly]="true"></psi-input>

  <button (click)="onClearClick()">clear</button>

then in your component reference using @ViewChild and call setValue method.

 @ViewChild('myInput') myInput:any;
  onClearClick(){
    this.myInput.setValue('');
  }

API

0.0.12

4 years ago

0.0.13

4 years ago

0.0.14

4 years ago

0.0.15

4 years ago

0.0.11

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.3

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago