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

[Query] Callbacks and Validators #65

Open
e0lithic opened this issue Aug 19, 2020 · 1 comment
Open

[Query] Callbacks and Validators #65

e0lithic opened this issue Aug 19, 2020 · 1 comment

Comments

@e0lithic
Copy link

e0lithic commented Aug 19, 2020

Hi,

My usecase is that I would like to generate the choices for the next question in the SlidePrompt based on the inputs the user provided to the previous question. I went through the documentation but did not find relevant information on it.

So to summarize :

  1. Ability to have callbacks which get triggered so that that the state of variables in the program can be changed or functions could be fired in order to facilitate the next set of choices.
  2. Can we also have generic user defined validators just like the Number prompt which is number specific.

Please let me know if I have missed something.

Keep up the great work.
Thanks.

@e0lithic
Copy link
Author

I was able to implement the custom usecase using the basic ui components and wrapping up in a class.However, keeping this issue open for discussion on callbacks as they would greatly help in making a reusable API.

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

1 participant