-
Notifications
You must be signed in to change notification settings - Fork 1
/
ui.R
38 lines (37 loc) · 1.26 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
header <- dashboardHeader(
title = "NHL Ice Hockey"
#title = span("NHL Ice Hockey",
# style = "color: black; font-size: 20px; font-family: Open Sans")
)
sidebar <- dashboardSidebar(
#Here goes more customization
collapsed = TRUE,
useShinyjs(),
sidebarMenu(
shinyjs::useShinyjs(),
id = "tabs",
menuItem('Shot Map',
startExpanded = TRUE,
menuSubItem('Team', tabName = 'team_shots'),
menuSubItem('Arena', tabName = 'arena_shots'),
menuSubItem('Player', tabName = 'player_shots')
),
menuItem('Season Statistics', tabName = 'season'),
menuItem('Player Performance', tabName = 'player'),
menuItem('Team Performance', tabName = 'team')
)
)
body <- dashboardBody(
tags$head(
tags$style(HTML(".main-sidebar { font-size: 15px; }")) #change the font size to 20
),
tabItems(
tabItem('team_shots', uiOutput('shotByTeam')),
tabItem('arena_shots', uiOutput('shotByArena')),
tabItem('player_shots', uiOutput('shotByPlayer')),
tabItem('season', uiOutput('statisticBySeason')),
tabItem('player', uiOutput('performanceByPlayer')),
tabItem('team', uiOutput('performanceByTeam'))
)
)
ui <- dashboardPage(header, sidebar, body, skin = 'black')