-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui.R
43 lines (40 loc) · 1.06 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
header <- dashboardHeader(
title = "Twitter Dashboard"
)
sidebar <- dashboardSidebar(
sidebarMenu(
shinyWidgets::searchInput(
"search_twitter",
"Search",
value = "Elon Musk",
btnSearch = icon("search"),
#btnReset = icon("remove"),
width = "100%"
),
menuItem("Dashboard", tabName = "dashboard", icon = icon("dashboard")),
menuItem("Map", tabName = "map", icon = icon("map-o")),
menuItem("Tweets", tabName = "tweets", icon = icon("twitter"))
)
)
body <- dashboardBody(
tags$head(
tags$link(
rel = "shortcut icon",
type = "image/png",
href = "https://res.cloudinary.com/dxqnb8xjb/image/upload/v1510505618/tychobra-logo-blue_d2k9vt.png"
)#,
#tags$link(rel = "stylesheet", type = "text/css", href = "styles.css"),
#tags$script(src = "custom.js")
),
tabItems(
source("ui/01-ui-dashboard.R", local = TRUE)$value,
source("ui/02-ui-map.R", local = TRUE)$value,
source("ui/03-ui-tweets.R", local = TRUE)$value
)
)
dashboardPage(
header,
sidebar,
body,
skin = "black"
)