Repository navigation
Closed
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: cdk/stepperfeatureLabel used to distinguish feature request from other issues
Description
Thanks for everyone who works on this project! I just upgraded to beta12 and am using the Stepper component now. I had a few proposals after using it for a bit. Please let me know what you think-I'd love to help contribute if we want any of these (:
- Mat-Stepper with horizontal/vertical as an input.
- Use Case: I have a stepper that I want to toggle between horizontal/vertical for different screen aspect ratios but with the same content and steps. Currently I would need to create two separate components and toggle between the two which feels messy.
- Proposal: Replace mat-vertical-stepper and mat-horizontal-stepper with mat-stepper that takes in an input to toggle between the two views
- SelectedIndex as input.
- Use Case: I want to programmatically change the current selectedStep. There was a question asked here about how to switch to the first step by setting the stepper.selectedIndex. I haven't been able to get this to work (possibly because of ChangeDetectionStrategy.OnPush)?
- Proposal: Stepper should take SelectedIndex as an input
- EDIT: Should be fixed by CdkStepper error when binding to selectedIndex #8031
- Reset Stepper.
- Use Case: I want to reset the stepper. I am using formGroup.reset() to reset each form, but this does not reset the visited states of each one of the steps.
- Proposal: Some way of resetting the stepper component to the initial state: First step is selected, Forms are reset, None of the steps have been touched etc.
- Animate Height.
- Use Case: Currently the steps slide right/left but the height of the stepper does not transition smoothly.
- Proposal: Transition the height of the steps when changing from one step to the other
Let me know what you think~
Reacted by sam-lex, Jerry Sumpton, Nicolas Toublanc, Tomasz, John, jeroen256, Roy Lee, Sam, FrancisS, cedvdb and 48 more
Metadata
Metadata
Assignees
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: cdk/stepperfeatureLabel used to distinguish feature request from other issues
Activity
sam-lex commentedon Oct 11, 2017
Would like to add one more suggestion here as well:
5. Disabled step. Or a way to add/remove steps.
I was able to add steps with something like this:
but if I go back to previous step, and change it so that these additional steps aren't required, and setting
this.inventoryForms = [], the steps are not removed from the stepper.Even wrapping it inside a
<ng-container *ngIf="inventoryForms.length > 0">did not work. 😞sam-lex commentedon Oct 12, 2017
I got a work-around, but is probably a bad idea 😅
justinwaite commentedon Oct 13, 2017
I would like to also leave a suggestion.
6. Async step support. If each step is using it's own FormGroup, while using linear="true", the forms should be submitted before moving on to the next step.
davidrensh commentedon Oct 20, 2017
disabled attribute is must have.
For example: we have 5 steps, step N is disabled by business logic. Then it should be gray out and not editable
spongessuck commentedon Oct 26, 2017
Perhaps related to 4. Animate Height: having it animate the same way tab transitions where you see the current content slide out
vegham commentedon Nov 5, 2017
Have any one a solution for suggestion 1? I tried quickly the same as in #8014 but ran into same issues.
Misiu commentedon Nov 21, 2017
As @jdeanwaite suggested async step support is critical.
I need to create 5 step process, when user clicks Next I'd like to submit data from that step to server, so that user can come back later and resume process.
linear="true"solves problem with disabling ability to move to next step before filling current, but there should be option to disable moving back. In my case when user submits current step by clickingNexthe can't move back. Currently he can click Back button or use labels to navigate, so disable attribute is a must have for me.feat(stepper): add the ability to reset a stepper
feat(stepper): add the ability to reset a stepper
feat(stepper): add the ability to reset a stepper
feat(stepper): allow for orientation to be changed dynamically
feat(stepper): allow for orientation to be changed dynamically
31 remaining items
akvaliya commentedon Mar 20, 2019
I want the same. But want stepper fix at the bottom of the page & section should scroll.
Any idea how to achieve that.
tonysamperi commentedon Mar 20, 2019
@akvaliya if I remember correctly the stepper and the content are
flex.You can swap the order with a simple rule:
flex-direction: column-reversekungufli commentedon Aug 18, 2020
I'm trying to get the same style requested by @AGPX (horizontal stepper with the steps content cover all the available vertical space), but I'm struggling to get it. Even the workarounds suggested by @tonysamperi and @Springrbua aren't working for me, maybe they worked well when posted, but they don't for sure on version 10.1.3, that I'm using.
Any suggestion?
tonysamperi commentedon Aug 18, 2020
@kungufli I suggest not using github as stackoverflow.
I think you should create a post there and show what you've tried so far.
I think you should at least create a stackblitz with your environment so that anyone can take a look and maybe help you out!
feat(material/stepper): allow for orientation to be changed dynamically
feat(material/stepper): allow for orientation to be changed dynamically
feat(material/stepper): allow for orientation to be changed dynamically
feat(material/stepper): allow for orientation to be changed dynamically
feat(material/stepper): allow for orientation to be changed dynamically
feat(material/stepper): allow for orientation to be changed dynamical…
crisbeto commentedon Apr 23, 2021
I believe that most of the suggestions here are now supported. I'll close the issue since these sorts of multi-feature-request issues tend to be difficult to follow.
angular-automatic-lock-bot commentedon May 24, 2021
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.