-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui.R
131 lines (125 loc) · 4.44 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
library(shiny)
teams <- read.csv("config/teamnames.csv", header=FALSE, stringsAsFactors = FALSE)[,1]
shinyUI(fluidPage(
tags$head(tags$style(HTML(".selectize-dropdown {
z-index: 1001;
}"))),
# Header command center
fluidRow(column(7,
wellPanel(
fluidRow(column(
4,
selectInput("onPoint",
"Player",
"Select")
),
column(
3,
selectInput("draftTeam",
"Team",
"Select")
),
column(
2,
numericInput("draftCost",
"Cost",
1)
),
column(
2,
fluidRow(
checkboxInput("keeper","Keeper?")
),
fluidRow(
actionButton('addOnPoint',
'Draft Player'))
),
column(
1,
h1(textOutput("bidUpToValue"))
)
)
)
),
column(4,
fluidRow(
column(5,selectInput("myTeam","My Team",teams)),
column(3,numericInput("totalBudget","Total $$",200)),
column(4,numericInput("reserveBudget","Reserve $$",15))
),
fluidRow(
column(2,numericInput("numQB","QBs",1)),
column(2,numericInput("numRB","RBs",2)),
column(2,numericInput("numWR","WRs",2)),
column(2,numericInput("numTE","TEs",1)),
column(4,numericInput("numFLEX","FLEXes",1))
)
),
column(1,
fluidRow(
checkboxGroupInput("checks","FLEXable",
c("QB" = "QB",
"RB" = "RB",
"WR" = "WR",
"TE" = "TE"),
selected = c("RB","WR","TE"),
inline = FALSE)
)
)
),
sidebarLayout(# Sidebar command center
sidebarPanel(
width = 2,
actionButton('saveDraftBoard',
'Save Draft'),
actionButton('loadDraftBoard',
'Load Draft Cache'),
h4("Money Available: ", strong(textOutput("spendable"))),
h4("My Roster"),
tableOutput("myRoster"),
h4("Dream Team"),
tableOutput("dreamTeam"),
h4("Some controls")
),
# Main nav bar
mainPanel(
width = 10,
navbarPage(
"Title",
tabPanel("Draft Board",
tableOutput('draftBoard')),
tabPanel(
"QB/DST/K",
fluidRow(
column(4, DT::dataTableOutput('playerBoardQB')),
column(4, DT::dataTableOutput('playerBoardDST')),
column(4, DT::dataTableOutput('playerBoardK'))
)
),
tabPanel(
"FLEX",
fluidRow(
column(4, DT::dataTableOutput('playerBoardRB')),
column(4, DT::dataTableOutput('playerBoardWR')),
column(4, DT::dataTableOutput('playerBoardTE'))
)
),
tabPanel(
"Calculator",
"Some measures of money remaining/inflation.",
plotOutput('pctAAVTracker'),
fluidRow(
column(3, sliderInput("overallAAV","Overall AAV Multiplier",0,4,1,step=0.05)),
column(3, sliderInput("QBAAV","QB AAV Multiplier",0,5,1,step=0.1)),
column(2, sliderInput("WRAAV","WR AAV Multiplier",0,3,1,step=0.1)),
column(2, sliderInput("RBAAV","RB AAV Multiplier",0,3,1,step=0.1)),
column(2, sliderInput("TEAAV","TE AAV Multiplier",0,3,1,step=0.1))
),
plotOutput('Calculator')
),
tabPanel("Under the hood",
tableOutput("underTheHood"),
numericInput("rosterspots","Non-DST/K Roster Spots",11))
)
))
))