How to create multiple tours? #176
Answered
by
hakimio
AksanaMaliaus
asked this question in
Q&A
-
Hi. I need to create multiple tours in my application. Is it possible to do? |
Beta Was this translation helpful? Give feedback.
Answered by
hakimio
May 19, 2024
Replies: 1 comment 4 replies
-
You can have one tour at a time. After one finishes you can reconfigure the tour with different steps. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Option number
2
. The tour service is global to the whole app, you can not have 2 tours configured with different steps at the same time.You can launch a new tour after the previous one is completed by the user or you explicitly complete it by calling the method. Might be best to simple check the state of the tour with
getState()
before starting the second tour to make sure you are not starting a new tour while the previous one hasn't ended yet.