Newer Version Available
Display Flow Stages with a Lightning Component
- Wrap the progress indicator with a lightning:flow component in a parent
component.
1<aura:component> 2 <lightning:progressindicator/> 3 <lightning:flow/> 4</aura:component> - Add the progress indicator to your flow screen directly, by using a Lightning component screen field.
It's easier to get labels for the active and current stages in a flow from the lightning:flow component.
- Wrapper component: The onstatuschange action in the standard lightning:flow component returns the names and labels for the flow's active stages and current stage.
-
Lightning component screen field: You can only pass the fully resolved stage name into a Lightning component. If your flow is namespaced, the fully resolved name is namespace.flowName:stageName. Otherwise, it'sflowName:stageName.
Depending on your naming convention, you can convert the stage names into labels by dropping the namespace and flow name, then replacing underscores with spaces.