forked from luanfiorentin/consult
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui.R
114 lines (99 loc) · 2.38 KB
/
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
# ** User Interface ------------------------------------------------------------
## ** Menu do dashboard --------------------------------------------------------
# Menu principal:
sidebar <- dashboardSidebar( # Begin: dashboardSidebar
sidebarMenu( # End siderbarMenu
# Menu de dados brutos:
menuItem(
text = "Visão Geral",
tabName = "visao",
icon = icon("table")
),
# Menu de Deficits:
menuItem(
text = "Déficits",
tabName = "deficits",
icon = icon("money-bill")
),
# Menu de Investimentos:
menuItem(
text = "Investimentos",
tabName = "investimentos",
icon = icon("dollar-sign")
)
) # End siderbarMenu
) # End dashboardSidebar
body <- dashboardBody( # Begin dashboardBody:
# Tema do dashboard definido anteriormente:
temadashboard,
fluidPage(
tags$hr(),
checkboxGroupInput(
inputId = "banco",
label = h6("Selecione o Banco de Dados para Visualizar:"),
choices = list(
"Água" = 1,
"Resíduos" = 2,
"Drenagem" = 3
),
selected = 1
),
tags$hr(),
column(
width = 4,
tags$hr(),
align = "left",
checkboxGroupInput(
inputId = "id_municipio",
label = h3("Município:"),
selected = "todos",
choices = list(
"Todos" = "todos",
"ID" = "S"
)
)
),
column(
width = 4,
tags$hr(),
align = "left",
checkboxGroupInput(
inputId = "id_estado",
label = h3("Estado:"),
selected = "todos",
choices = list(
"Todos" = "todos",
"ID" = "S"
)
)
),
column(
width = 4,
tags$hr(),
align = "left",
checkboxGroupInput(
inputId = "id_populacao",
label = h3("População:"),
selected = "todos",
choices = list(
"Todos" = "todos",
"ID" = "S"
)
)
),
DTOutput(outputId = "banco") %>% withSpinner(color = "grey", size = 2),
tags$hr(),
downloadButton("downloadData", "Download"),
tags$hr()
)
) # Begin dashboardBody
# Interface de usuário:
ui <- dashboardPage(
# Nome do projeto:
header = header,
# Layout / menu do dashboard:
sidebar = sidebar,
# Corpo do shinyapp:
body = body
)
# ** Menu do dashboard ---------------------------------------------------------