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

Pause until element becomes visible or event is triggered #157

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mikocot
Copy link

@mikocot mikocot commented Jan 11, 2021

Whenever the element to be highlighted in the next step is not yet available when moving to the next step (e.g. it's loading or within a modal) the process fails with an error that selector could not be find.

Thanks to pause function one can hide the overlay and wait until particular action happens:

  • an event is triggered on body
  • an event is triggered on specified element (can be different than the step selector)
  • an element becomes visible

Especially the last one is extremely useful. One can for example wait for the modal to show up or control to load and automatically restart whenever it is shown. In the meantime user can see the whole app without an overlay.

This can be also used to let user play around and only restart the tour when particular action is triggered, meanwhile not disturbing the user with the overlay and instructions.

It's basically a timeout, but event-based.

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

Successfully merging this pull request may close these issues.

None yet

1 participant