@@ -23,20 +23,13 @@ app_ui = function(request) {
23
23
<hr>" ),
24
24
shiny :: checkboxGroupInput(
25
25
" auto_escape_check_group" ,
26
- label = shiny :: tags $ label(
27
- " Auto Escape Backslashes" ,
28
- shinyBS :: bsButton(" escape_tooltip" ,
29
- label = " " ,
30
- icon = shiny :: icon(" question" ),
31
- style = " background-color:transparent" ,
32
- size = " extra-small" ),
33
- ),
26
+ label = " Auto Escape Backslashes" ,
34
27
choices = c(" Pattern" = " pattern" ,
35
28
" Test String" = " test_str" ),
36
29
selected = " test_str"
37
30
), # shiny::checkboxGroupInput
38
31
shinyBS :: bsPopover(
39
- id = " escape_tooltip " ,
32
+ id = " auto_escape_check_group " ,
40
33
title = " Bring your own escapes?" ,
41
34
content = paste0(" When working with regex in R, you often need more " ,
42
35
shiny :: code(" \\\\ " ), " than you think. For example, in Rs regex " ,
@@ -47,7 +40,7 @@ app_ui = function(request) {
47
40
" for example, a new line in the test string will be converted to the letter " ,
48
41
shiny :: code(" n" ), " (because " , shiny :: code(" \\\\ n" ), " -> " , shiny :: code(" n" ), " )."
49
42
),
50
- placement = " right " ,
43
+ placement = " bottom " ,
51
44
trigger = " hover" ,
52
45
options = list (container = " body" )
53
46
), # shinyBS::bsPopover
@@ -115,26 +108,23 @@ app_ui = function(request) {
115
108
), # fluidRow
116
109
shiny :: hr(),
117
110
shiny :: fluidRow(
118
- col_12(align = " center" ,
119
- shiny :: HTML(
120
- paste0(
121
- " <a " ,
122
- " href='https://adamspannbauer.github.io/2018/01/16/r-regex-tester-shiny-app/' " ,
123
- " target='_blank'" ,
124
- " >" ,
125
- " <h4>About the app<h4>" ,
126
- " </a>"
127
- )
128
- ) # HTML
129
- ) # col_12
130
- ), # fluidRow
131
- shiny :: hr(),
132
- shiny :: fluidRow(
133
- col_12(align = " center" ,
134
- shiny :: includeHTML(
135
- app_sys(file.path(" app/www" , buy_me_stuff_btn()))
136
- )
137
- ) # col_12
111
+ col_5(align = " center" ,
112
+ offset = 1 ,
113
+ shiny :: actionButton(
114
+ inputId = " about_app" ,
115
+ " About" ,
116
+ icon = shiny :: icon(" file-alt" ),
117
+ onclick = " window.open('https://adamspannbauer.github.io/2018/01/16/r-regex-tester-shiny-app/', '_blank')"
118
+ )
119
+ ), # col
120
+ col_5(align = " center" ,
121
+ shiny :: actionButton(
122
+ inputId = " buy_me_stuff" ,
123
+ " Buy me a coffee" ,
124
+ icon = shiny :: icon(" coffee" ),
125
+ onclick = " window.open('https://www.buymeacoffee.com/qp7GmCrco', '_blank')"
126
+ )
127
+ ) # col
138
128
) # fluidRow
139
129
), # sidebarPanel
140
130
shiny :: mainPanel(
0 commit comments