Allow to change current step
VishnuJangid8955 opened this issue · comments
Is your feature request related to a problem?
If the developer wants to change the current step from 2 to 5 then. They are not able to change that.
Describe the solution you'd like
We can give a setCurrentStep feature so the user can change the current step. the
Describe alternatives you've considered
No response
Additional Context
No response
Thanks for your report.
The Intro.js API provides a goToStep()
function for such use cases. When using this wrapper, you can still access the Intro.js instance by using a ref on either the <Steps />
or <Hints />
components as documented here.
I'm getting an error when I'm using ref. Please check @HiDeoo
But as of now, I'm using goToStep through introJs.
![Screenshot 2024-03-29 at 10 22 19 PM](https://private-user-images.githubusercontent.com/47751902/318099085-3aa06616-bf3f-46e3-8ab7-2550c82db62c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA0MTE3MDEsIm5iZiI6MTcyMDQxMTQwMSwicGF0aCI6Ii80Nzc1MTkwMi8zMTgwOTkwODUtM2FhMDY2MTYtYmYzZi00NmUzLThhYjctMjU1MGM4MmRiNjJjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzA4VDA0MDMyMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTg4M2RhOWEyNDMyMTY0ZTE2M2FlZDgzZGM5OGU5MGY2YzljZTYzMTY5Y2NkMzEwODEwZDdlZDc5YTQzM2U2NDgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.VGsQx2p8qEscZL7tOMoBcKHT8gZJax5SOWxN4hKIZ0Y)