-
Notifications
You must be signed in to change notification settings - Fork 10
/
ui.R
34 lines (33 loc) · 1.11 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
library(shinydashboard)
dashboardPage(
dashboardHeader(title = "Google Trends"),
dashboardSidebar(sidebarMenu(
menuItem("Chart", tabName = "chart", icon = icon("bar-chart")),
menuItem("Data", tabName = "data", icon = icon("table")),
selectInput("country", label = h5("Select Country"),
choices = list("DE"="DE","AT"="AT","CH"="CH"), selected = "DE"),
dateRangeInput("daterange", label=h5("Date range:"),
start = "2015-01-01",
end = Sys.Date()-1
),
textInput("queries", label = h5("Search Queries"),
width = "100%",
value = 'nhl,nba,nfl'
),
downloadButton("downloadData", label = "Download Data", class = NULL),
tags$style(type="text/css", "#downloadData {padding: 10px; margin: 20px;}")
)
),
dashboardBody(
tabItems(
# First tab content
tabItem(tabName = "chart",
plotOutput("plot1", height = 500)
),
# Second tab content
tabItem(tabName = "data",
dataTableOutput('data')
)
)
)
)