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

Dynamically pass valid methods #38

Open
agritheory opened this issue Mar 25, 2019 · 0 comments
Open

Dynamically pass valid methods #38

agritheory opened this issue Mar 25, 2019 · 0 comments
Labels
working on this issue I'm working on this issue now :)

Comments

@agritheory
Copy link

The pattern='some_regex' doesn't handle None/ "" inputs.

It would be reasonable to pass a validation method in the constructor and have it default to the builtin. This would allow for inline validation, which is almost always better UX.

Input("Enter database name: ",
    word_color=colors.foreground["blue"],
    strip=True,
    valid=my_input_validation),
@bchao1 bchao1 added the working on this issue I'm working on this issue now :) label May 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
working on this issue I'm working on this issue now :)
Projects
None yet
Development

No branches or pull requests

2 participants