Can a joyride tour travel from a parent component into a child and then activate elements in the child? #1129
Unanswered
kristo-baricevic
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Great library! I have a few questions about implementing Joyride in an analytics interface.
I’m building a tour to guide users through creating charts, starting with selecting a component on a parent level and interacting with it on a child level. In the Controlled demo, there’s an example like this:
One problem with this is the location of tool tip and the interaction with booleans. In the following scenario, I want to guide the user through using a serieus of menus that are modals. But the ref is not going to be recognized before isOpen is true and it won't be located where the content is. Instead it will stick the tooltip to the outer div, which in this case is a screen-wide overlay for the modal.
Then in regards to working with a child component's state - Let’s say Component has a state, isActive, that changes the border color when true, indicating it’s selected. Can the ref be passed directly to the child like this?
Would you need to remove the definition of isActive from Component and move it into the Joyride state?
The idea is for the child component to handle its own guided steps. Inside Component, it might look like this:
In this scenario can Joyride interact functions like handleSelectData() and booleans like isAddDataClicked? If so would these needed to be moved into Joyride's state and out of the child component, or can Joyride interact with the state of a child component?
I’m also curious: can Joyride interact with dynamic components created in a loop, like this? If so, can it select the first in the series, then move to the next, and so on? Or does it require static components?
Thanks for your help! Let me know if you need additional details.
Beta Was this translation helpful? Give feedback.
All reactions