americanexpress / react-albus

✨ React component library for building declarative multi-step flows.
Apache License 2.0
1.1k stars 89 forks source link

feat(wizard): canNavigateTo function #40

Closed deblasis closed 2 years ago

deblasis commented 5 years ago

Added support for an optional function canNavigateTo(wizard) to the Step component. It allows the user to specify logic used to disallow hot-linking steps

CLAassistant commented 5 years ago

CLA assistant check
All committers have signed the CLA.

github-actions[bot] commented 4 years ago

This pull request is stale because it has been open 30 days with no activity. Remove no-pr-activity label or comment or this will be closed in 5 days.

github-actions[bot] commented 4 years ago

This pull request is stale because it has been open 30 days with no activity.

ryhinchey commented 3 years ago

The functionality in this PR should be achievable with the onNext prop within Wizard. Check out this example: https://codesandbox.io/s/github/americanexpress/react-albus/tree/master/examples/skip-a-step?from-embed