shinyInput_label_embed | R Documentation |
The element embedded into the Shiny input will be pulled to the right edge of the label.
shinyInput_label_embed(tag, element)
tag |
Shiny input, such as |
element |
|
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")
.
Shiny input, modified copy of tag
shiny_iconlink()
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") )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.