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

Detecting end of bubble tutorial #39

Closed
sujitpk-perennial opened this issue Jun 18, 2018 · 2 comments
Closed

Detecting end of bubble tutorial #39

sujitpk-perennial opened this issue Jun 18, 2018 · 2 comments

Comments

@sujitpk-perennial
Copy link

I want to detect the end of the bubble tutorial in the app so that I can perform other operations. Is there any way to detect.

@mohebifar
Copy link
Owner

You can use the copilotEvents prop in the root component to register event listeners. You can specifically listen for the stop event:

this.props.copilotEvents.on('stop', () => {
  console.log('Tutorial stopped');
})

@sujitpk-perennial
Copy link
Author

@mohebifar Thanks a million.

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