Implementing a custom wizard component with Steps

PrimeNG has a component called Steps, which indicates the steps in a workflow. The usage is simple:

<p-steps [model]="items" [(activeIndex)]="activeIndex"></p-steps>

The model is a collection of objects of type MenuItem which we met in the Chapter 7, Endless Menu Variations. The property activeIndex points to an index of the active item (step) in the collection of items. The default value is 0 what means that the first item is selected by default. We can also make the items clickable by setting [readonly]="false".

Refer to the PrimeNG showcase to see Steps in action: https://www.primefaces.org/primeng/#/steps

On basis of <p-steps>, we will implement a wizard like behavior with two custom ...

Get Angular UI Development with PrimeNG now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.