Skip to content

Passe a fuction to [canExit] #379

Description

@AbigailAdjo

Hello all ,
I have a verification to do before allowing the wizard to exit the current step and enter the next step,
I'm trying to passe a function to [canExit] but seems like the way I'm doing is the wrong one.
Can anyone help?

HTML :

<aw-wizard-step stepTitle="Identification" formGroupName="step1Validation"
[canExit]="canExitStep1($event)">

Typescript :

canExitStep1(direction: MovingDirection, forward: boolean, backward: boolean) {
switch (direction) {
case MovingDirection.Forwards : return forward;
case MovingDirection.Backwards: return backward;
}
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions