-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui.R
99 lines (81 loc) · 4.54 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
navbarPage(title = "Land Use Forecast Dashboard",
id = 'navbar',
tags$head(
tags$link(rel = "stylesheet", type = "text/css", href = "styles.css")
),
theme = bs_theme(version = 5),
# one-run -----------------------------------------------------------------
tabPanel("One-Run",
fluidRow(
column(width = 3,
conditionalPanel(condition = "input.oneTab == 'ct'",
one_run_widgets_ui('mismatch')),
conditionalPanel(condition = "input.oneTab == 'sp'",
one_run_widgets_ui('spPlaces')),
conditionalPanel(condition = "input.oneTab == 'dec'",
dec_widgets_ui('dec')),
conditionalPanel(condition = "input.oneTab == 'gw'",
growth_widgets_ui('growth'))
),
column(width = 9,
tabsetPanel(id = 'oneTab',
type = 'tabs',
tabPanel('CT Mismatch',
value = 'ct',
ct_mismatch_ui('mismatchContent')
),
tabPanel('Special Places',
value = 'sp',
sp_places_ui('spPlacesContent')
),
tabPanel('Decreases',
value = 'dec',
dec_ui('decContent')
),
tabPanel('Growth',
value = 'gw',
growth_plot_map_tbl_ui('growthContent')
)
) # end tabsetPanel
)
)
), # end tabPanel
# multi-run ---------------------------------------------------------------
tabPanel("Multi-Run",
fluidRow(
column(width = 3,
conditionalPanel(condition = "input.multiTab == 'runcomparison'",
runcomp_widgets_ui('runComp')),
conditionalPanel(condition = "input.multiTab == 'topsheet'",
topsheet_widgets_ui('topSheet')
)
),
column(width = 9,
tabsetPanel(id = 'multiTab',
type = 'tabs',
tabPanel('Top Sheet',
value = 'topsheet',
topsheet_ui('topSheetContent')
), # end tabPanel
tabPanel('Run Comparison',
value = 'runcomparison',
runcomp_plot_map_tbl_ui('runCompContent')
) # end tabPanel
) # end column
)
) # end tabsetPanel
), # end tabPanel
# time series -------------------------------------------------------------
tabPanel('Time Series',
fluidRow(
column(width = 3,
timeseries_widgets_ui('ts')
),
column(width = 9,
timeseries_plot_ui('tsContent')
)
) # end fluidRow
), # end tabPanel
nav_spacer(),
nav_item(actionButton('modal', label = 'Select Runs', icon = icon('folder')))
) # end navbarPage