O'Reilly logo

Angular UI Development with PrimeNG by Oleg Varaksin, Sudheer Jonna

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required