sjmc11 / tourguide-js

TourGuide is a Javascript library for creating user tours and on-boarding steps for your apps.
https://tourguidejs.com
MIT License
592 stars 27 forks source link

Regarding back button displayed on first step of tour guide which is not good and how to remove that from only first step #33

Open phpwhizdeveloper opened 5 months ago

phpwhizdeveloper commented 5 months ago

I am currently working with the Tour Guide component and have encountered an issue regarding the functionality of the hidePrev property. My goal is to remove the back button only from the first step of the tour guide, while ensuring it appears in subsequent steps.

As per the documentation, I understand that setting hidePrev to true should remove the back button. However, when I apply this property, it removes the back button from all steps of the tour guide rather than just the first one.

Additionally, I attempted to add hidePrev selectively for the first step alone, but unfortunately, it did not yield the expected outcome.

Could you please provide guidance on how to achieve the desired behavior, where the back button is removed only from the initial step of the tour guide while appearing in subsequent steps?