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.

@FunctionalInterface public interface WizardStepPreviousPromise
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 Details

    • onPrevious

      Promise<Boolean> onPrevious(Wizard wizard, WizardStep current, WizardStep previous)
      Called when the user attempts to navigate to the previous step.
      Parameters:
      wizard - the wizard instance
      current - the current step being left
      previous - the previous step to be entered
      Returns:
      a Promise that resolves to true to allow the transition, or false to stay on the current step