
Research
/Security News
Contagious Interview Campaign Escalates With 67 Malicious npm Packages and New Malware Loader
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.
angular-weblineindia-currency-input
Advanced tools
An Angular-based currency input component for adding currency field.
An Angular-based currency input component for adding currency field.
![]() | ![]() | ![]() | ![]() | ![]() |
---|---|---|---|---|
83.0 ✔ | 77.0 ✔ | 13.1.1 ✔ | 83.0 ✔ | 11.9 ✔ |
Install the npm package:
npm install angular-weblineindia-currency-input
#OR
yarn add angular-weblineindia-currency-input
Use the <angular-weblineindia-currency-input>
component:
Add in app.module.ts file
import { NgModule } from "@angular/core";
import { AngularWeblineindiaCurrencyInputModule } from "angular-weblineindia-currency-input";
@NgModule({
imports: [AngularWeblineindiaCurrencyInputModule],
})
export class AppModule {}
Add in app.component.ts file
export class AppComponent {
constructor() {}
isInvalidPhoneNumber: boolean = false;
invalidMessage: string = "onFocusHandler(event: any): void";
onFocusHandler(event: any): void {
console.log("onFocusHandler: ", event.target.value);
}
onBlurHandler(event: any): void {
console.log("onBlurHandler: ", event.target.value);
}
onChangeHandler(event: any): void {
console.log("onChangeHandler: ", event.target.value);
}
onKeyPressHandler(event: any): void {
console.log("onKeyPressHandler: ", event.target.value);
}
onKeyDownHandler(event: any): void {
console.log("onKeyDownHandler: ", event.target.value);
}
onKeyUpHandler(event: any): void {
console.log("onKeyUpHandler: ", event.target.value);
}
}
Add in app.component.html file
<angular-weblineindia-currency-input
name="myInputName"
[value]="203000.45"
classname="currency-input"
errorClass="errorMessage"
placeholder="Enter amount here"
[disabled]="true"
[required]="false"
[prefix]="'$Rs'"
[isInvalidPhoneNumber]="isInvalidPhoneNumber"
[invalidMessage]="invalidMessage"
(focus)="onFocusHandler($event)"
(blur)="onBlurHandler($event)"
(change)="onChangeHandler($event)"
(keyPress)="onKeyPressHandler($event)"
(keyDown)="onKeyDownHandler($event)"
(keyUp)="onKeyUpHandler($event)"
>
</angular-weblineindia-currency-input>
Add in app.component.css file
::ng-deep .currency-input {
}
::ng-deep .errorClass {
color: RED;
margin: 0;
}
Prop | Type | default | Description |
---|---|---|---|
name | String | Name for the input | |
value | String | Initial value of input | |
classname | String | false | CSS class applied for curency input. |
errorClass | String | CSS class applied for error message | |
placeholder | String | The input field will get this placeholder text | |
required | boolean | false | If true, makes the input field mandatory. |
disabled | boolean | false | If true, disables the input field. |
prefix | String | To set currency type | |
isInvalidPassword | boolean | false | Indicates if the currency is invalid |
invalidMessage | String | Message to display when the currncy is invalid |
Name | Description |
---|---|
focus | Gets triggered when the autocomplete input field receives focus. |
blur | Gets triggered when the autocomplete input field loses focus. |
keyPress | Gets triggered when a key gets pressed. |
keyDown | Gets triggered when a key gets down. |
keyUp | Gets triggered when a key gets up. |
We have built many other components and free resources for software development in various programming languages. Kindly click here to view our Free Resources for Software Development
Detailed changes for each release are documented in CHANGELOG.md.
angular-weblineindia-currency-input, currencyInput, input, angular, angular-component, currencyInput-component, currencyInput-box
FAQs
An Angular-based currency input component for adding currency field.
The npm package angular-weblineindia-currency-input receives a total of 4 weekly downloads. As such, angular-weblineindia-currency-input popularity was classified as not popular.
We found that angular-weblineindia-currency-input demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.