dq_helptag: Creates a help symbol with the given title as popover

Description Usage Arguments Value Author(s) Examples

View source: R/dq_helptag.R

Description

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.

Usage

1
dq_helptag(title, trigger = "hover", width = 200, style = NULL)

Arguments

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.

Value

shiny tag holding the help icon

Author(s)

richard.kunze

Examples

 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) {
  }
)

}

daqana/dqshiny documentation built on Sept. 1, 2020, 4:31 p.m.