Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passe a fuction to [canExit] #379

Open
AbigailAdjo opened this issue Jun 23, 2022 · 0 comments
Open

Passe a fuction to [canExit] #379

AbigailAdjo opened this issue Jun 23, 2022 · 0 comments

Comments

@AbigailAdjo
Copy link

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;
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant