Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
stepper-control
Advanced tools
Readme
This Angular Module (Component) allows you to have a control (+ -) for incresing or decreasing value control.
You can use the component as a formControl or respond to change event
npm install stepper-control
Import the module into your project under imports
imports: [
BrowserModule,
AppRoutingModule,
StepperModule
],
To use in your component, use the following tag for a basic setup
<wav-stepper-control></wav-stepper-control>
Here is the component with all input controls
<wav-stepper-control
formControlName="account"
[vertical]="true"
[padding]="3"
[incrementBy]=".5"
[min]="10"
[max]="20"
(change)="onStepChange($event)"
></wav-stepper-control>
The following Inputs are available
Input | Type | Defaut | Description |
---|---|---|---|
vertical | BOOLEN | FALSE | controls the display type (vertical |
padding | NUMBER | 0 | pads the resulting value |
incrementBy | NUMBER | 1 | increment value by |
min | NUMBER | NULL | min value |
max | NUMBER | NULL | max value |
The following Inputs are available
Event | Type | Description |
---|---|---|
change | STRING | current value padded |
define a formGroup control
stepper = this.fb.group({
value: [10]
})
then onInit() specify the form change event
this.stepper.get('value')?.valueChanges.subscribe(data => {
console.log('VALUE:', data)
})
Then implement the component
<div [formGroup]="privateForm">
<wav-stepper-control
formControlName="value"
[min]="10"
[max]="20"
></wav-stepper-control>
</div>
Then implement the component
<div [formGroup]="privateForm">
<wav-stepper-control
[min]="10"
[max]="20"
(change)="onStepChange($event)"
></wav-stepper-control>
</div>
then create the function to catch the reponse to the change
onStepChange(data: string) {
console.log(data)
}
FAQs
This Angular Module is a stepper controller
The npm package stepper-control receives a total of 0 weekly downloads. As such, stepper-control popularity was classified as not popular.
We found that stepper-control 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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.