-
Notifications
You must be signed in to change notification settings - Fork 2
/
box_format.R
48 lines (44 loc) · 1.08 KB
/
box_format.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
titleBox <- function(title) {
fluidRow(
box(
width = 12, background = "navy",
span(strong(title),
style = "font-size:24px"
)
)
)
}
sectionBox <- function(..., title) {
fluidRow(
box(...,
width = 12,
title = span(strong(title), style = "font-size:24px"),
solidHeader = TRUE, status = "warning", collapsible = FALSE
)
)
}
textBox <- function(...) {
box(span(...,
style = "font-size:18px"
), status = "success", width = 12)
}
messageBox <- function(...) {
box(..., status = "danger", background = "green")
}
module_Box <- function(..., title, imgSrc, text) {
box(
...,
title = span(title, style = "font-size:20px"),
solidHeader = TRUE, status = "primary", color="blue",
fluidRow(
column(
width = 5,
div(style = "margin-left:5px;margin-right:0px;margin-top:0px;",shiny::img(src = imgSrc, width = "100%", height = "100%"))
),
column(
width = 7,
span(text, style = "font-size:18px"),
)
)
)
}