Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

shinyInput_label_embed

Embed an element into the label of a Shiny-input tag


Description

The element embedded into the Shiny input will be pulled to the right edge of the label.

Usage

shinyInput_label_embed(tag, element)

Arguments

tag

Shiny input, such as shiny::[numericInput][shiny::numericInput]

element

htmltools::[tag][htmltools::tag] to be embedded into label of tag

Details

To promote consistency, the following convention is proposed:

For links (activated by clicking), embed a shiny::icon("info-circle"); this is the default for shiny_iconlink(). For elements activated by hovering, embed a shiny::icon("info").

Value

Shiny input, modified copy of tag

See Also

Examples

library("shiny")

numericInput(inputId = "foo", label = "Enter a number", value = 0) %>%
  shinyInput_label_embed(
    shiny_iconlink() %>%
    bs_embed_popover(title = "Number", content = "Not a complex number")
  )

bsplus

Adds Functionality to the R Markdown + Shiny Bootstrap Framework

v0.1.2
MIT + file LICENSE
Authors
Ian Lyttle [aut, cre, cph] (<https://orcid.org/0000-0001-9962-4849>), Schneider Electric [cph], Alex Shum [ctb], Emily Bosak [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.