Learn R Programming

shinyreforms (version 0.0.1)

addHelpText: Adds a help icon to an input.

Description

Internal function which adds a shinyreforms pop-up with help text to a shiny inputTag. The help text is a div which gets appended to the label for the given input.

Usage

addHelpText(tag, helpText, updated = FALSE)

Arguments

tag

A tag to be modified.

helpText

Help text to be added.

updated

An internal parameter which is used in recurrent calls to the function.

Value

A modified Shiny tag with a shinyreforms help icon.

Examples

Run this code
# NOT RUN {
addHelpText(
  shiny::textInput("text_input", label = "Label"),
  helpText = "Tooltip"
)
# }

Run the code above in your browser using DataLab