Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
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 0 weekly downloads. As such, angular-weblineindia-currency-input popularity was classified as not popular.
We found that angular-weblineindia-currency-input demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.