The NumberInput component for Angular represents a widget that allows you to input currency, percentages and any type of numeric data. The edited data can be presented in various formats.
npm install -g @angular/cli ng new jqwidgets-project cd jqwidgets-project
ng add jqwidgets-ng
jQWidgets UI for Angular is distributed as jqwidgets-ng NPM package
npm install jqwidgets-ng
@import 'jqwidgets-ng/jqwidgets/styles/jqx.base.css';
"styles": [ "node_modules/jqwidgets-ng/jqwidgets/styles/jqx.base.css" ]
<div style="margin-top: 10px;">
Number
</div>
<jqxNumberInput [theme]="'fluent'" #numericInput
[width]="250" [height]="25" [spinButtons]="true">
</jqxNumberInput>
<div style="margin-top: 10px;">
Percentage
</div>
<jqxNumberInput [theme]="'fluent'" #percentageInput
[width]="250" [height]="25" [symbolPosition]="'right'"
[symbol]="'%'" [spinButtons]="true" [digits]="3">
</jqxNumberInput>
<div style="margin-top: 10px;">
Currency
</div>
<jqxNumberInput [theme]="'fluent'" #currencyInput
[width]="250" [height]="25" [symbol]="'$'" [spinButtons]="true">
</jqxNumberInput>
<div style="margin-top: 10px;">
Disabled
</div>
<jqxNumberInput [theme]="'fluent'" #disabledInput
[width]="250" [height]="25" [disabled]="true" [spinButtons]="true">
</jqxNumberInput>
import { Component } from '@angular/core';
import { jqxNumberInputModule, jqxNumberInputComponent } from 'jqwidgets-ng/jqxnumberinput';
@Component({
selector: 'app-root',
imports: [jqxNumberInputModule],
standalone: true,
templateUrl: './app.component.html'
})
export class AppComponent {
}