-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui.R
39 lines (32 loc) · 1023 Bytes
/
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
library(shiny)
library(DT)
library(googlesheets)
library(rsconnect)
library(shinythemes)
fields <- c("line1", "line2", "line3","author")
fields2 <- c("haiku", "author")
shinyUI(fluidPage(theme = shinytheme("journal"),
titlePanel('Haiku_R 1.0'),
sidebarLayout(
sidebarPanel('Write',
textInput("line1", label = "Write your haiku here:", ""),
textInput("line2", label = NULL),
textInput("line3", label = NULL),
textInput("author", label = "Author"),
actionButton("submit", "Submit"),
downloadButton("downloadData", "Download"),
textOutput("line1_text"),
textOutput("line2_text"),
textOutput("line3_text")
),
mainPanel(
tabsetPanel(
tabPanel('View',
uiOutput("haikus2"),
tags$style (type="text/css", "#haikus2 td:last-child {font-style:italic;}")
),
tabPanel('Data', DT::dataTableOutput("haikus"))
)
)
)
))