Reactive R6Class that returns HTML according to a test function. Modules like
checked_text_input or observed_vector_input
provide a argument accepting an ErrorController or
ErrorControllerList that expands the module's default tests.
1 2 3 4 5 6 7 8 9 | error_controller <- shiny::isolate({
ErrorControllerList$new()$add_error_controller(
ErrorController$new(
fun = function(x) purrr::is_null(x),
ui_true = "x is NULL",
ui_false = "x is not NULL",
error = TRUE
)
)})
|
Initialize the error controller list.
Add an ErrorController
to the error controller list.
Get the UI of all ErrorController as a list
ordered by the priority of the respective ErrorController.
Returns TRUE if any of
the ErrorController has an error.
Sets the value of all ErrorController.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.