This function outputs the html tags needed to create UI for the successes, warnings, and failures results boxes.
This gives functionality to the results boxes module UI, attaching titles and populating the validation results.
results_boxes_ui(id) results_boxes_server(input, output, session, results)
id | The module id. |
---|---|
input | The input from |
output | The output from |
session | The session from |
results | List of the validation results. If |
The html UI for the module.
library("shiny") library("shinydashboard") server <- function(input, output) { # Create some sample results res <- list( check_pass(msg = "All good!", behavior = "Values should be >10"), check_fail( msg = "Some values are too small", behavior = "Values should be > 10", data = c(5.5, 1.3) ) ) # Show results in boxes callModule(results_boxes_server, "validation_results", res) } ui <- function(request) { dashboardPage( header = dashboardHeader(), sidebar = dashboardSidebar(), body = dashboardBody( includeCSS( system.file("app/www/custom.css", package = "dccvalidator") ), results_boxes_ui("validation_results") ) ) } if (FALSE) { shinyApp(ui, server) }