-
Notifications
You must be signed in to change notification settings - Fork 20
/
utils_ui.R
73 lines (72 loc) · 1.18 KB
/
utils_ui.R
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#' @importFrom shiny fluidRow tags checkboxInput
modalinner <- function(
summary,
checkbox_id,
parent_ns,
...
) {
fluidRow(
tags$details(
summary(summary),
tags$div(
class = "modalinner innerrounded rounded",
col_12(
checkboxInput(
parent_ns(checkbox_id),
summary
)
),
...
)
)
)
}
#' @importFrom shiny tags
#' @importFrom tools toTitleCase
h1 <- function(x){
tags$h1(
toTitleCase(x)
)
}
#' @importFrom shiny tags
#' @importFrom tools toTitleCase
h2 <- function(x){
tags$h2(
toTitleCase(x)
)
}
#' @importFrom shiny tags
#' @importFrom tools toTitleCase
h3 <- function(x){
tags$h3(
toTitleCase(x)
)
}
#' @importFrom shiny tags
#' @importFrom tools toTitleCase
h4 <- function(x){
tags$h4(
toTitleCase(x)
)
}
#' @importFrom shiny tags
#' @importFrom tools toTitleCase
h5 <- function(x){
tags$h5(
toTitleCase(x)
)
}
#' @importFrom shiny tags
#' @importFrom tools toTitleCase
h6 <- function(x){
tags$h6(
toTitleCase(x)
)
}
#' @importFrom shiny tags
#' @importFrom tools toTitleCase
summary <- function(x){
tags$summary(
toTitleCase(x)
)
}