addHelpText {shinyreforms}R Documentation

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

addHelpText(
  shiny::textInput("text_input", label = "Label"),
  helpText = "Tooltip"
)

[Package shinyreforms version 0.0.1 Index]