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

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 this issue Mar 28, 2024 · 1 comment

Comments

@phpwhizdeveloper
Copy link

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?

@fred727-temp
Copy link

Simply add custom CSS :

#tg-dialog-prev-btn.disabled {
	display: none;
}

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

2 participants