-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui.R
52 lines (50 loc) · 1.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
shinyUI(
fluidPage(
tags$head(
tags$link(rel = "stylesheet", type = "text/css", href = "styles.css")
),
useShinyjs(),
useWaiter(),
# useWaitress(),
useShinyFeedback(),
sidebarPanel(
p("This application aims to show how to use async code through Shiny."),
selectizeInput(
inputId = "cities",
label = "Select a pool of cities to calculate the best route",
choices = unique(tb_map$name_muni),
multiple = TRUE,
options = list(maxItems = 7, minItems = 3)
),
actionButton(
inputId = "compute",
label = "Compute",
icon = icon("cog")
),
br(),
br(),
tags$pre(thecode)
),
mainPanel(
column(
width = 4,
div(
id = "cities_results_spinner",
style = "height: 450px;",
DTOutput("cities_results", height = "400px")
)
),
column(
width = 8,
align = "center",
DTOutput("cities_distance", height = "400px"),
div(
id = "cities_plot_spinner",
style = "height: 420px;",
plotOutput("cities_plot", height = "400px")
),
uiOutput("cities_layout_plot")
)
)
)
)