-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathui.R
More file actions
32 lines (26 loc) · 931 Bytes
/
ui.R
File metadata and controls
32 lines (26 loc) · 931 Bytes
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
library(shiny)
# Define UI for application that plots random distributions
shinyUI(bootstrapPage(
# Application title
headerPanel("Running Diary"),
# Sidebar with a slider input for number of observations
sidebarPanel(
radioButtons("sel","Select action", selected="Insert",
c("Insert" = "ins",
"Add Row" = "add",
"Change Rov" = "cha",
"Delete Last Row" = "del-las",
"Delete a Row" = "del-a")),
numericInput("R", "Row", 1),
dateInput("D", "Date", value = "2012-02-29",format = "dd/mm/yy"),
numericInput("W", "Km Traveled", 70.3),
actionButton("action","Apply Changes")
),
# Show a plot of the generated distribution
mainPanel(
tabsetPanel(id="tab1",
tabPanel("Sheet",tableOutput("km")),
tabPanel("Summary",verbatimTextOutput("summary")),
tabPanel("Plot",plotOutput("plot"))
))
))