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

[Help] Creating a close button in chat ui #20

Closed
footballdaddy opened this issue Aug 10, 2017 · 2 comments
Closed

[Help] Creating a close button in chat ui #20

footballdaddy opened this issue Aug 10, 2017 · 2 comments

Comments

@footballdaddy
Copy link

footballdaddy commented Aug 10, 2017

So I have been modifying around to create this.
I believe you have to be inside a step to be able to render (w/ previous, and trigger)

Creating a button like on chatbot.js
<button onClick={() => this.triggerB}>Continue</button> triggerB() { this.triggerNextStep(); }

it seems to me the only way to do this is by using redux to have the data pass up, however, if there an alternative or an idea I would appreciate some input.

@LucasBassetti
Copy link
Owner

Would you like a button to trigger the next step? I don't intend to create it. I recommend you look the Custom Component. You can use the waitAction prop and create a button to trigger next step (using triggerNextStep callback` when user clicks.

@footballdaddy
Copy link
Author

Alright, understandable.

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