CodeBeamOrg / CodeBeam.MudBlazor.Extensions

Useful third party extension components for MudBlazor, from the contributors.
https://mudextensions.codebeam.org/
MIT License
367 stars 62 forks source link

MudStepper add optional negative index (-1) step #227

Open tavanuka opened 1 year ago

tavanuka commented 1 year ago

I wanted to open this issue to discuss the idea of a "get started" step on the negative index in the Stepper component. (I am not sure if this is already possible through assignment of what step is on what index).

mckaragoz commented 1 year ago

That's a good idea. We have IsResultStep property for last step. We can add IsIntroStep as the same logic. But needs lots of work to arrange SetActiveStep, Reset etc. And probably we need a new public method to go to IntroStep programmatically.

So if someone volunteer to work on this, why not 🙂

tavanuka commented 1 year ago

@mckaragoz Sounds great. I could take some time to analyse the Stepper component and learn the ropes of it, and see if I come with a solution for programatically setting the index. I have some questions though:

  1. Would the intro page display the header and steps coming before?
  2. Should the intro step hide the steps to come?

I would love to hear some suggestions. I really am enjoying using Mudblazor and its extensions.

mckaragoz commented 1 year ago

@mckaragoz Sounds great. I could take some time to analyse the Stepper component and learn the ropes of it, and see if I come with a solution for programatically setting the index. I have some questions though:

  1. Would the intro page display the header and steps coming before?
  2. Should the intro step hide the steps to come?

I would love to hear some suggestions. I really am enjoying using Mudblazor and its extensions.

I think IntroStep should be same with ResultStep, example if result step does not represent on header, intro step should also not

tavanuka commented 1 year ago

Great, thank you for the feedback. I will start looking into it when I can and submit a pull request to discuss the code and what could be changed/improved. 😊