-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathui.R
42 lines (42 loc) · 1.26 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
shinyUI(bootstrapPage(
title = "DSM2 Map",
tags$style(
type = "text/css",
"html, body {width:100%;height:100%}",
".leaflet-map-pane { z-index: auto; }"
),
leafletOutput('Map', width = "100%", height = "100%"),
absolutePanel(
top = 10,
right = 20,
wellPanel(
pickerInput(
inputId = "selected_station",
label = "Selected station",
choices = c("", sort(sll$RKI)),
selected = "",
options = list(`live-search` = TRUE, size = 10)
),
pickerInput(
inputId = "selected_node",
label = "Selected node",
choices = c("", sort(nll$NNUM)),
selected = "",
options = list(`live-search` = TRUE, size = 10)
),
pickerInput(
inputId = "selected_channel",
label = "Selected channel",
choices = c("", sort(cll$channel_nu)),
selected = "",
options = list(`live-search` = TRUE, size = 10)
),
conditionalPanel(condition = 'input.selected_channel != ""',
HTML(
paste("Upstream node of selected", "channel is shown in red.", sep = "<br/>")
)),
br(),
tags$a(href = "https://github.com/fishsciences/dsm2-map", "Code on GitHub")
)
)
))