-
Notifications
You must be signed in to change notification settings - Fork 2
/
ui-setup.R
49 lines (49 loc) · 1.57 KB
/
ui-setup.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
get_setup_ui <- function() {
fluidPage(
titlePanel("Modify your dataset"),
sidebarLayout(
sidebarPanel(
# Select rows to remove from dataset
selectInput(
inputId = "setup_subset_select_rows",
label = "Select rows to remove from your working dataset",
choices = "",
multiple = TRUE),
# Conditional panels go here:
textInput(
inputId = "setup_subset_mask",
label = "Wavelenght intervals to remove from your working data",
placeholder = "Example: 300,400,1000,1200"),
selectInput(
inputId = "setup_subset_attrib_cols",
label = "Select attributes you wish to remove from your data",
choices = "",
multiple = TRUE),
actionButton(
inputId = "setup_subset_preview_changes",
label = "Preview changes"),
actionButton(
inputId = "setup_subset_apply_changes",
label = "Apply changes"),
actionButton(
"setup_subset_restore_defaults",
label = "Reset inputs")
),
mainPanel(
tabsetPanel(
id = "setup_subset_tab",
tabPanel(
'Spectra',
DT::dataTableOutput("setup_subset_spectra_preview")),
tabPanel(
'Attributes',
DT::dataTableOutput("setup_subset_attrib_preview"))
# tabPanel(
# 'Field matrices',
# DT::dataTableOutput("setup_subset_table_fieldmat")
# )
)
)
)
)
}