# NOT RUN {
## 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, {
feedbackSuccess(
"exampleInput",
condition = input$exampleInput < 0
)
})
}
shinyApp(ui, server)
}
# }
Run the code above in your browser using DataLab