react-joyride icon indicating copy to clipboard operation
react-joyride copied to clipboard

Documentation / example on setting up a controlled tour.

Open InputNeuron opened this issue 7 years ago • 3 comments

It would be nice to have documentation and an example on how to setup a controlled tour.

I want the user to be able to click on a menu, reveal the menu, then click on a button.

Right now I can't figure out how to do this.

Joyride is great btw. Easy to setup and did a great job explaining the app we're developing:

https://getpolarized.io/

the goal is walk them through the main features and new features as they are shipped.

InputNeuron avatar Feb 21 '19 16:02 InputNeuron

Hey @burtonator Did you check the controlled example in the demo?

gilbarbara avatar Feb 22 '19 12:02 gilbarbara

Just to verify,

You just use the 'step' manually and then handle the state via the callbacks?

I think I figured it out. Maybe just a 'how to do a controlled demo' would work.

Also, do I need to manually determine when my app is in the right state by setting step once it's changed by adding my own event listeners?

InputNeuron avatar Feb 22 '19 15:02 InputNeuron

That's what the demo is for... :) Yeah, when you set a stepIndex the tour flow should be handled by you.

gilbarbara avatar Feb 22 '19 16:02 gilbarbara