Bug what is the expected behavior.
Mat stepper with icons custom.
The angular material library offers a suite of angular components styled with material design.
If a step s label is only text then the label attribute can be used.
Expected behaviorhow do i disable clicking of the actual step icons in a stepper.
Mat vertical stepper mat.
I have custom handling through my own buttons to do some validation between steps.
Mat horizontal stepper selector can be used to create a horizontal stepper and mat vertical stepper can be used to create a vertical stepper.
If there is a way to force the action on a step icon click to be the same as the button that would work as well.
Step 2 to override the icons import the stepper global options to provide the stepper options to modify in component.
Texts are not printed on the screen instead of the icons if the icon set is not present.
It is possible to jump to a specific stepper by using selectedindex property of the matstepper also matstepper exposes public methods next and previous you can use them to move back and forth.
Material is an adaptable system of guidelines components and tools that support the best practices of user interface design.
But what if we want to display some custom icons while staying consistent with the material design styling.
I can set up another icons from another icon sets e g.
One such component is the mat icon component.
A stepper is a two segment control used to increase or decrease an incremental value.
Mat step components need to be placed inside either one of the two stepper components.
The ng template element with matsteplabel directive attribute inside the mat step can have a custom step label.
Step 1 to use mat icon component we need to import the maticonmodule.
By default one segment of a stepper displays a plus symbol and the other displays a minus symbol.
These symbols can be replaced with custom images if desired.
Stepper then in your goback and goforward methods pass the stepper id.
Bug feature request or proposal.
Add an id to your stepper e g.
Actual behaviorstep icons are not lin.