An Angular numeric textbox component
npm install ngx-numeric-textboxAn Angular numeric textbox component
* Angular
* Lodash
* Numeral
* Bootstrap 4 alpha 6
You can customize CSS yourself to break down dependencies to Bootstrap.
https://leovo2708.github.io/ngx-numeric-textbox/
After install the above dependencies, install ngx-numeric-textbox via:
``shell`
npm install ngx-numeric-textbox --save`
Once installed you need to import our main module in your application module:js
import { NumericTextboxModule } from 'ngx-numeric-textbox';
@NgModule({
declarations: [
AppComponent,
...
],
imports: [
FormsModule,
NumericTextboxModule,
...
],
bootstrap: [
AppComponent
]
})
export class AppModule {
}
`
`html``
[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)">
* format string: http://numeraljs.com/#format
I am very appreciate for your ideas, proposals and found bugs which you can leave in github issues. Thanks in advance!