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.
@anglify/stepper
Advanced tools
> An Angular stepper based on RxJS, which provides various events to make development easier. > This library has no dependencies.
Readme
An Angular stepper based on RxJS, which provides various events to make development easier. This library has no dependencies.
It includes a ready to use stepper implementation as well as the possibility to create your own stepper using the available services (similar to the Angular Material Stepper).
npm install @anglify/stepper
app.module.ts
(or any other module)
import { StepperModule } from '@anglify/stepper';
@NgModule({
// ...
imports: [
// ...
BrowserAnimationsModule, // Required for stepper animations
StepperModule, // Module that contains the stepper
],
})
export class AppModule {
}
app.component.html
<anglify-stepper #stepper>
<ng-template anglifyStep label="First step">
First step content
<button (click)="stepper.next()">Continue</button>
</ng-template>
<ng-template anglifyStep label="Second step" [valid]="stepValid">
Valid:<input type="checkbox" [(ngModel)]="stepValid" /><br />
<button (click)="stepper.previous()">Back</button>
<button anglifyStepperNext>Continue</button>
</ng-template>
<ng-template anglifyStep label="Third step">
Third step content
<button anglifyStepperPrevious>Back</button>
<button anglifyStepperNext>Continue</button>
</ng-template>
</anglify-stepper>
app.component.ts
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss'],
})
export class AppComponent {
public stepValid = false;
}
Name | Type | Default | Description |
---|---|---|---|
stepConnectionLine | boolean | true | Activates or deactivates the connection line of the stepper, which is visible at the left edge |
headerNavigation | boolean | true | Activates or deactivates the navigation via the step headers |
orientation | vertical or horizontal | vertical | Sets the orientation of the stepper |
Name | Description | Emits |
---|---|---|
onPrevious | Emitted when the previous step is opened | |
onNext | Emitted when the next step is opened | "horizontal" or "vertical" |
orientationChange | Emitted when the orientation changes | |
reset | Emitted when the stepper is reset | |
stepChange | Emitted when the step selected step changes | Step |
Name | Type | Default | Description |
---|---|---|---|
label | string | - | Label of the step, that is displayed in the stepper header |
valid | boolean | true | With this field you can validate the current step. If the step is valid, you can navigate to the following steps. Otherwise it is not possible. |
Name | Description | Emits |
---|---|---|
selectedChange | Emitted when the step gets selected or unselected | boolean |
validChange | Emitted when the valid state of the step changes | boolean |
visitedChange | Emitted when the visited state of the step changes | boolean |
This directive can be placed on a button, for example. After a click the stepper automatically goes to the previous step
<anglify-stepper>
...
<ng-template anglifyStep label="Step 2">
Content 2
<button anglifyStepperPrevious>Back</button>
</ng-template>
</anglify-stepper>
Alternatively you can call the previous method of a stepper reference:
<anglify-stepper #stepper>
...
<ng-template anglifyStep label="Step label">
Content x
<button (click)="stepper.previous()">Back</button>
</ng-template>
</anglify-stepper>
In this case you can place the button also outside the stepper.
This directive can be placed on a button, for example. After a click the stepper automatically goes to the next step
<anglify-stepper>
<ng-template anglifyStep label="Step label">
Content x
<button anglifyStepperNext>Continue</button>
</ng-template>
...
</anglify-stepper>
Alternatively you can call the next method of a stepper reference:
<anglify-stepper #stepper>
<ng-template anglifyStep label="Step label">
Content x
<button (click)="stepper.next()">Continue</button>
</ng-template>
...
</anglify-stepper>
In this case you can place the button also outside the stepper.
FAQs
> An Angular stepper based on RxJS, which provides various events to make development easier. > This library has no dependencies.
We found that @anglify/stepper 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.