Class IgxStepComponent

The IgxStepComponent is used within the igx-stepper element and it holds the content of each step. It also supports custom indicators, title and subtitle.

IgxStepperModule

step

 <igx-stepper>
...
<igx-step [active]="true" [completed]="true">
...
</igx-step>
...
</igx-stepper>

Implements

  • IgxStep
  • AfterViewInit
  • OnDestroy

Constructors

Properties

activeChange: EventEmitter<boolean> = ...

Emitted when the step's active property changes. Can be used for two-way binding.

<igx-step [(active)]="this.isActive">
</igx-step>
const step: IgxStepComponent = this.stepper.step[0];
step.activeChange.subscribe((e: boolean) => console.log("Step active state change to ", e))
cdr: ChangeDetectorRef = ...
completed: boolean = false

Get/Set whether the step is completed.

When set to true the following separator is styled solid.

<igx-stepper>
...
<igx-step [completed]="true"></igx-step>
...
</igx-stepper>
this.stepper.steps[1].completed = true;
id: string = ...

Get/Set the id of the step component. Default value is "igx-step-0";

<igx-step id="my-first-step"></igx-step>
const stepId = this.step.id;
optional: boolean = false

Get/Set whether the step is optional.

Optional steps validity does not affect the default behavior when the stepper is in linear mode i.e. if optional step is invalid the user could still move to the next step.

<igx-step [optional]="true"></igx-step>
this.stepper.steps[1].optional = true;
renderer: Renderer2 = ...
stepper: IgxStepper = ...

Accessors