Skip to content

Commit 6fe5ae1

Browse files
Merge pull request #23 from AdamSpannbauer/popover#22
cvt popover to not use button
2 parents 8ffdbcc + aa5f6b9 commit 6fe5ae1

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

R/app_ui.R

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,15 @@ app_ui = function(request) {
2323
<hr>"),
2424
shiny::checkboxGroupInput(
2525
"auto_escape_check_group",
26-
label = "Auto Escape Backslashes",
26+
label = shiny::HTML(
27+
"<label id='auto_escape_doc_popover'>Auto Escape Backslashes (<u><code>?</code></u>)"
28+
),
2729
choices = c("Pattern" = "pattern",
2830
"Test String" = "test_str"),
2931
selected = "test_str"
3032
), # shiny::checkboxGroupInput
3133
shinyBS::bsPopover(
32-
id = "auto_escape_check_group",
34+
id = "auto_escape_doc_popover",
3335
title = "Bring your own escapes?",
3436
content = paste0("When working with regex in R, you often need more ",
3537
shiny::code("\\\\"), " than you think. For example, in Rs regex ",
@@ -39,11 +41,11 @@ app_ui = function(request) {
3941
"backslashes that R is looking for. This can lead to some unexpected behavior; ",
4042
"for example, a new line in the test string will be converted to the letter ",
4143
shiny::code("n"), " (because ", shiny::code("\\\\n"), " -> ", shiny::code("n"), ")."
42-
),
43-
placement = "bottom",
44-
trigger = "hover",
44+
),
45+
placement = "right",
46+
trigger = "click",
4547
options = list(container = "body")
46-
), # shinyBS::bsPopover
48+
), # shinyBS::bsPopover
4749
shiny::checkboxGroupInput(
4850
"additional_params",
4951
label = shiny::tags$label("Additional Parameters"),

0 commit comments

Comments
 (0)