@drrrs/ngx-numeric-textbox
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.11 • Public • Published

    ngx-numeric-textbox

    Fork of ngx-numeric-textbox upgraded to be usable with Angular 12

    Installation

    Install @drrrs/ngx-numeric-textbox via:

    npm install @drrrs/ngx-numeric-textbox --save

    Once installed you need to import our main module in your application module:

    import { NumericTextboxModule } from 'ngx-numeric-textbox';
    
    @NgModule({
      declarations: [
        AppComponent,
        ...
      ],
      imports: [
        FormsModule,
        NumericTextboxModule,
        ...
      ],  
      bootstrap: [
        AppComponent
      ]
    })
    export class AppModule {
    }

    Usage

    <ngx-numeric-textbox
        [min]="min"
        [max]="max"
        [disabled]="disabled"
        [decimals]="decimals"
        [format]="format"
        [placeholder]="placeholder"
        [rangeValidation]="rangeValidation"
        [(ngModel)]="value"
        (focus)="onFocus()"
        (blur)="onBlur()"
        (enter)="onEnter()"
        (escape)="onEscape()"
        (ngModelChange)="ngModelChange($event)">
    </ngx-numeric-textbox>

    Install

    npm i @drrrs/ngx-numeric-textbox

    DownloadsWeekly Downloads

    19

    Version

    1.0.11

    License

    MIT

    Unpacked Size

    36.7 kB

    Total Files

    11

    Last publish

    Collaborators

    • drrrs