import {MatStepperModule} from '@angular/material/stepper';
MatStepperIntl
Stepper data that is required for internationalization.
Name | Description |
---|---|
|
Stream that emits whenever the labels here are changed. Use this to notify components if the labels have changed after initialization. |
|
Label that is used to indicate step as completed to screen readers. |
|
Label that is used to indicate step as editable to screen readers. |
|
Label that is rendered below optional steps. |
MatStep
extends
CdkStep
Selector: mat-step
Exported as: matStepName | Description |
---|---|
@Input('aria-label')
|
Aria label for the tab. |
@Input('aria-labelledby')
|
Reference to the element that the tab is labelled by.
Will be cleared if |
@Input()
|
Theme color for the particular step. This API is supported in M2 themes only, it has no effect in M3 themes. For color customization in M3, see https://material.angular.dev/components/stepper/styling. For information on applying color variants in M3, see https://material.angular.dev/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants |
@Input({ transform: booleanAttribute })
|
Whether step is marked as completed. |
@Input({ transform: booleanAttribute })
|
Whether the user can return to this step once it has been marked as completed. |
@Input()
|
Error message to display when there's an error. |
@Input({ transform: booleanAttribute })
|
Whether step has an error. |
@Input()
|
Plain text label of the step. |
@Input({ transform: booleanAttribute })
|
Whether the completion of step is optional. |
@Input()
|
State of the step. |
@Input()
|
The top level abstract control of the step. |
@Output('interacted')
|
Emits when the user has attempted to move away from the step. |
|
Template for step content. |
|
Current index of the step within the stepper. |
|
Type of indicator that should be shown for the step. |
|
Whether user has attempted to move away from the step. |
|
Whether the user can navigate to the step. |
|
Whether the step is selected. |
|
Content for step label given by |
isErrorState | |
---|---|
Custom error state matcher that additionally checks for validity of interacted form. |
|
Parameters | |
control AbstractControl<any, any>
|
|
form FormGroupDirective | NgForm
|
|
Returns | |
boolean
|
|
reset | |
---|---|
Resets the step to its initial state. Note that this includes resetting form data. |
select | |
---|---|
Selects this step component. |
MatStepper
extends
CdkStepper
Selector: mat-stepper mat-vertical-stepper mat-horizontal-stepper [matStepper]
Exported as: matStepper, matVerticalStepper, matHorizontalStepperName | Description |
---|---|
@Input()
|
Duration for the animation. Will be normalized to milliseconds if no units are set. |
@Input()
|
Theme color for all of the steps in stepper. This API is supported in M2 themes only, it has no effect in M3 themes. For color customization in M3, see https://material.angular.dev/components/stepper/styling. For information on applying color variants in M3, see https://material.angular.dev/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants |
@Input()
|
Whether ripples should be disabled for the step headers. |
@Input()
|
Position of the stepper's header.
Only applies in the |
@Input()
|
Whether the label should display in bottom or end position.
Only applies in the |
@Input({ transform: booleanAttribute })
|
Whether the validity of previous steps should be checked or not. |
@Input()
|
Orientation of the stepper. |
@Input()
|
The step that is selected. |
@Input({ transform: numberAttribute })
|
The index of the selected step. |
@Output()
|
Event emitted when the current step is done transitioning in. |
@Output()
|
Output to support two-way binding on |
@Output()
|
Event emitted when the selected step has changed. |
|
Steps that belong to the current stepper, excluding ones from nested steppers. |
next | |
---|---|
Selects and focuses the next step in list. |
previous | |
---|---|
Selects and focuses the previous step in list. |
reset | |
---|---|
Resets the stepper to its initial state. Note that this includes clearing form data. |
MatStepHeader
extends
CdkStepHeader
Selector: mat-step-header
Name | Description |
---|---|
@Input()
|
Whether the given step label is active. |
@Input()
|
Theme color of the step header. This API is supported in M2 themes only, it has no effect in M3 themes. For color customization in M3, see https://material.angular.dev/components/stepper/styling. For information on applying color variants in M3, see https://material.angular.dev/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants |
@Input()
|
Whether the ripple should be disabled. |
@Input()
|
Error message to display when there's an error. |
@Input()
|
Overrides for the header icons, passed in via the stepper. |
@Input()
|
Index of the given step. |
@Input()
|
Label of the given step. |
@Input()
|
Whether the given step is optional. |
@Input()
|
Whether the given step is selected. |
@Input()
|
State of the given step. |
focus | |
---|---|
Focuses the step header. |
|
Parameters | |
origin? FocusOrigin
|
|
options? FocusOptions
|
|
MatStepLabel
extends
CdkStepLabel
Selector: [matStepLabel]
Name | Description |
---|---|
|
MatStepperNext
extends
CdkStepperNext
Button that moves to the next step in a stepper workflow.
Selector: button[matStepperNext]
Name | Description |
---|---|
@Input()
|
Type of the next button. Defaults to "submit" if not specified. |
MatStepperPrevious
extends
CdkStepperPrevious
Button that moves to the previous step in a stepper workflow.
Selector: button[matStepperPrevious]
Name | Description |
---|---|
@Input()
|
Type of the previous button. Defaults to "button" if not specified. |
MatStepperIcon
Template to be used to override the icons inside the step header.
Selector: ng-template[matStepperIcon]
Name | Description |
---|---|
@Input('matStepperIcon')
|
Name of the icon to be overridden. |
|
MatStepContent
Content for a mat-step
that will be rendered lazily.
Selector: ng-template[matStepContent]
MatStepperIconContext
Template context available to an attached matStepperIcon
.
Name | Description |
---|---|
|
Whether the step is currently active. |
|
Index of the step. |
|
Whether the step is optional. |