R/hideFeedback.R

Defines functions hideFeedback

Documented in hideFeedback

#' hideFeedback
#' 
#' hide feedback next to Shiny input
#' 
#' @param inputId the Shiny input's \code{inputId} argument
#' @param session the \code{shiny} session
#' 
#' @importFrom shiny getDefaultReactiveDomain
#' 
#' @export
#' 
#' 
hideFeedback <- function(
  inputId,
  session = shiny::getDefaultReactiveDomain()
) {
  
  # some argument checks
  stopifnot(is.character(inputId))
  
  ns <- session$ns
  
  # call js function
  session$sendCustomMessage(
    type = "hideFeedback",
    message = list(
      inputId = ns(inputId)
    )
  )
}

Try the shinyFeedback package in your browser

Any scripts or data that you put into this service are public.

shinyFeedback documentation built on Sept. 24, 2021, 5:07 p.m.