-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathui-export.R
More file actions
46 lines (46 loc) · 1.62 KB
/
ui-export.R
File metadata and controls
46 lines (46 loc) · 1.62 KB
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
get_export_data_ui <- function() {
fluidPage(
titlePanel("Export data"),
sidebarLayout(
sidebarPanel(
selectInput(
inputId = "export_select_table_type",
label = "What do you want to export?",
choices = c("Spectral data" = "spectra",
"Vegetation index data" = "vegindex")
), conditionalPanel(
condition = "input.export_select_table_type == 'vegindex'",
selectInput(inputId = "export_table_vegindex_vi",
label = "Choose vegetation indices to include in your exported table",
choices = "",
multiple = TRUE)
), conditionalPanel(
condition = "input.export_select_table_type == 'vegindex'",
checkboxInput(
inputId = "export_vegindex_all_indices",
label = "Include all indices?",
value = FALSE
)
), checkboxInput(
inputId = "export_by_attrib",
label = "Calculate mean indices/spectra by an attribute?",
value = FALSE
),
conditionalPanel(
condition = "input.export_by_attrib",
selectInput(
inputId = "export_by_attrib_select",
label = "Which attribute?",
choices = "",
multiple = FALSE
)
),
actionButton("export_preview_table_button", label = "Preview output"),
downloadButton("export_download_table")
),
mainPanel(
DT::dataTableOutput("export_table_preview")
)
)
)
}