You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to add a custom transition to a form flow. The one I currently require is very simple, but there might be more complex transitions. I'm not even sure, whether this is a good way to accomplish it. I got a flow, which got a step, that allows the user to choose whether to skip a defined part (multiple steps) of the flow.
The thing I don't like is the unnecessary coupling customization of the template for the custom transition.
I would rather like to have a collection of transitions that are available on a given step. This collection contains the two default transitions already given reset and back. Each step may return a collection of additional transitions to be handled.
If a transition is active, the flow will handle it, e.g. by firing an event to delegate the changes in state. This would also allow to hook into resetting a flow or going backwards.
What are your thoughts? Am I missing some key elements to accomplish what I require? Are transitions the right way?
The text was updated successfully, but these errors were encountered:
I want to add a custom transition to a form flow. The one I currently require is very simple, but there might be more complex transitions. I'm not even sure, whether this is a good way to accomplish it. I got a flow, which got a step, that allows the user to choose whether to skip a defined part (multiple steps) of the flow.
Flow with custom transition:
The
buttons.html.twig
in use:The thing I don't like is the unnecessary coupling customization of the template for the custom transition.
I would rather like to have a collection of transitions that are available on a given step. This collection contains the two default transitions already given
reset
andback
. Each step may return a collection of additional transitions to be handled.If a transition is active, the flow will handle it, e.g. by firing an event to delegate the changes in state. This would also allow to hook into resetting a flow or going backwards.
What are your thoughts? Am I missing some key elements to accomplish what I require? Are transitions the right way?
The text was updated successfully, but these errors were encountered: