Interface WizardStepPreviousPromise
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Interface to handle the transition to the previous step in a
Wizard workflow asynchronously.
When a WizardStepPreviousPromise is associated with a step, the navigation to the previous step proceeds only if the
promise resolves to true.
-
Method Summary
Modifier and TypeMethodDescriptiononPrevious(Wizard wizard, WizardStep current, WizardStep previous) Called when the user attempts to navigate to the previous step.
-
Method Details
-
onPrevious
Called when the user attempts to navigate to the previous step.- Parameters:
wizard- the wizard instancecurrent- the current step being leftprevious- the previous step to be entered- Returns:
- a
Promisethat resolves totrueto allow the transition, orfalseto stay on the current step
-