checkFeedback: checkFeedback

View source: R/utils_additional_HTML.R

checkFeedbackR Documentation

checkFeedback

Description

relies on shinyFeedback to automate feedback on one input.

Usage

checkFeedback(
  input,
  id,
  condition = NULL,
  silent = FALSE,
  type = c("danger", "warning"),
  text = NULL
)

Arguments

id

character. An ID string that corresponds with the ID used to call the module's UI function.

condition

logical. Determines if the feedback is positive or not.

silent

logical. If TRUE, the only feedback occurs when condition is met. If FALSE, also displays feedbacks for other cases.

type

character. Either "danger" or "warning", sets the type of feedback in case condition is not met.

text

character. What message to display in case of unmet condition.


earnaud/MetaShARK-v2 documentation built on Sept. 21, 2022, 10:52 a.m.