-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Input validation #33
Comments
perhaps an argument that takes a function that evaluates to TRUE or FALSE. Some frequent validity checks could be provided in the shiny package as utility functions, and special cases could be created by users on the fly: is.positive <- function(x) {x > 0}
numericInput("number", "Positive Number:", 42, valid=is.positive) |
not sure about the bigger scheme of things, but I was hoping some feature like this would exist. My use case is where I might want to run some simple validation tests, such as:
I'm aware of the
I know that I could (probably) build this by hand, using additional Anyway, I was hoping this would be possible outside the box, but I'm too naive a user to know how/if/where this should be done. Am I making sense? Other thoughts / caveats:
This may also be interesting to @bborgesr and/or revelant to #1656. |
Hi all, |
@mkaranja I did something similar with the R package shinyFeedback |
Closing since we now have https://github.com/rstudio/shinyvalidate |
Need to give developers a way to specify what values are valid, at least for text boxes.
The text was updated successfully, but these errors were encountered: