Description Usage Arguments Value Author(s) Examples
Creates a help symbol with the given title as a popover. Trigger to show the popover can either be a mouse hover or a mouse click to show it until the user clicks again. Info tags can be added to shiny input labels via tagLists.
1 | dq_helptag(title, trigger = "hover", width = 200, style = NULL)
|
title |
Title to show in the popover. |
trigger |
Optional, can either be 'hover' to show the popover while the mouse is over the icon or 'focus' to show it while the tag is in focus. |
width |
Optional, width of the popover, can be numeric or character including any valid CSS unit. |
style |
Optional character, additional style attributes for the tag. |
shiny tag holding the help icon
richard.kunze
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | ## Only run examples in interactive R sessions
if (interactive()) {
library(shiny)
shinyApp(
ui = fluidPage(
init(),
fluidRow(
column(3,
dq_helptag(
"This info is visible after an click!<br>
Line breaks are also possible btw...",
trigger = "focus"
),
textInput("importantValue",
tagList("Important Value",
dq_helptag(
"This is an important value, you have to put something in!"
))
))
)),
server = function(input, output) {
}
)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.