The step is used within the stepper element and it holds the content of each step. It also supports custom indicators, title and subtitle.
- Igx Module
- IgxStepperModule
- Igx Keywords
- step
Example
<igx-stepper>
...
<igx-step [active]="true" [completed]="true">
...
</igx-step>
...
</igx-stepper> Constructors
Section titled "Constructors"IgxStepComponent
Section titled "IgxStepComponent"new IgxStepComponent(): IgxStepComponent Returns IgxStepComponent
Properties
Section titled "Properties"activeChange
Section titled "activeChange"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)) activeChange: EventEmitter<boolean> Defined in projects/igniteui-angular/stepper/src/stepper/step/step.component.ts:301
cdr: ChangeDetectorRef Defined in projects/igniteui-angular/stepper/src/stepper/step/step.component.ts:67
completed
Section titled "completed"Get/Set whether the step is completed.
completed: boolean = false Defined in projects/igniteui-angular/stepper/src/stepper/step/step.component.ts:135
Remarks
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; 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; id: string Defined in projects/igniteui-angular/stepper/src/stepper/step/step.component.ts:86
renderer
Section titled "renderer"renderer: Renderer2 Defined in projects/igniteui-angular/stepper/src/stepper/step/step.component.ts:68
stepper
Section titled "stepper"stepper: IgxStepper Defined in projects/igniteui-angular/stepper/src/stepper/step/step.component.ts:66
Accessors
Section titled "Accessors"active
Section titled "active"get active(): boolean Defined in projects/igniteui-angular/stepper/src/stepper/step/step.component.ts:211
Returns boolean
Get/Set the active state of the step
<igx-step [active]="true"></igx-step>this.stepper.steps[1].active = true; set active(value: boolean): void Defined in projects/igniteui-angular/stepper/src/stepper/step/step.component.ts:203
Parameters
- value:
boolean
Returns void
disabled
Section titled "disabled"get disabled(): boolean Defined in projects/igniteui-angular/stepper/src/stepper/step/step.component.ts:111
Returns boolean
Get/Set whether the step is interactable.
<igx-stepper>
...
<igx-step [disabled]="true"></igx-step>
...
</igx-stepper>this.stepper.steps[1].disabled = true; set disabled(value: boolean): void Defined in projects/igniteui-angular/stepper/src/stepper/step/step.component.ts:104
Parameters
- value:
boolean
Returns void
index
Section titled "index"Get the step index inside of the stepper.
const step = this.stepper.steps[1];
const stepIndex: number = step.index; get index(): number Defined in projects/igniteui-angular/stepper/src/stepper/step/step.component.ts:331
Returns number
isValid
Section titled "isValid"Get/Set whether the step is valid.
<igx-step [isValid]="form.form.valid">
...
<div igxStepContent>
<form #form="ngForm">
...
</form>
</div>
</igx-step> get isValid(): boolean Defined in projects/igniteui-angular/stepper/src/stepper/step/step.component.ts:151
Returns boolean
set isValid(value: boolean): void Defined in projects/igniteui-angular/stepper/src/stepper/step/step.component.ts:155
Parameters
- value:
boolean
Returns void
optional
Section titled "optional"get optional(): boolean Defined in projects/igniteui-angular/stepper/src/stepper/step/step.component.ts:184
Returns boolean
Get/Set whether the step is optional.
set optional(value: boolean): void Defined in projects/igniteui-angular/stepper/src/stepper/step/step.component.ts:177
Parameters
- value:
boolean
Returns void
tabIndex
Section titled "tabIndex"get tabIndex(): number Defined in projects/igniteui-angular/stepper/src/stepper/step/step.component.ts:222
Returns number