Description Usage Arguments Value Author(s) See Also Examples
View source: R/validateThenCSS.R
Extends shiny::validate
to produce an informative pop-up message and applies a CSS class if invalid
1 2 | validateThenCSS(session, inputId, ..., errorTitle = NULL,
invalidCSS = "invalidInput", raiseModal = TRUE)
|
session |
The shiny client session. |
inputId |
The input id to be validated. |
... |
function calls to |
errorTitle |
Optional error title string to be passed to |
invalidCSS |
CSS class to be applied if invalid, or removed if valid. |
raiseModal |
Logical, raise a modal |
Invisible TRUE if executes correctly, can be used for further validation or resets.
Andrea Berardi Andrea.Berardi@PAREXEL.com
validateThen
, errorMessage
,
validate
, need
1 2 3 | ## Not run: validateThenCSS(session,
"inputId", need(!is.na(x), "x is NA"))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.