Topic: Get requested step change with onChangeStep event
PianoMaster88 pro premium priority asked a year ago
I'm looking for a way to get the "requested" step change when the onChangeStep
event is triggered.
For example, if a user had clicked a continue button or clicked one of the step headers that triggers the onChangeStep
event, I'd like to get the index value of the step that the stepper will move to once the event completes.
I can get the step that the stepper is currently on before the onChangeStep
event completes using the activeStepIndex
property, however I am looking for a way to get the step that it's going to go to, as I need to do some different logic depending on which direction they're going in the stepper.
Does anyone have any suggestions on how to accomplish that or if that's even possible currently?
kpienkowska staff answered a year ago
Currently, we do not have the option to get that information from an event property.
You would probably have to search the event target for the closest stepper-head-text
or another element that let you know what step it will be.
PianoMaster88 pro premium priority commented a year ago
Thanks for letting me know - I'll see if I can come up with something. :)
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Pro
- Premium support: Yes
- Technology: MDB Standard
- MDB Version: MDB5 6.4.0
- Device: N/A
- Browser: N/A
- OS: N/A
- Provided sample code: No
- Provided link: No
mattybaer pro premium priority commented a year ago
Weird... I needed the exact same thing you did yesterday and came searching in the Support today. I'll let you know if I find a solution with the proposed answer below.