feedbackWarning.Rdwrapper for feedback() function that displays a
warning message by default
feedbackWarning(inputId, condition, text = "Ye be warned", color = "#F89406", icon = shiny::icon("warning-sign", lib = "glyphicon"))
| inputId | the Shiny input's |
|---|---|
| condition | condition under which feedback is displayed |
| text | default |
| color | default |
| icon | default |
feedback, feedbackDanger, feedbackSuccess
Other feedback wrappers: feedbackDanger,
feedbackSuccess
## Only run examples in interacive R sessions if (interactive()) { ui <- fluidPage( useShinyFeedback(), numericInput( "exampleInput", "Show Feedback When < 0", value = -5 ) ) server <- function(input, output) { observeEvent(input$exampleInput, { feedbackWarning( "exampleInput", condition = input$exampleInput < 0 ) }) } shinyApp(ui, server) }