Skip to content

Commit 90a9bb5

Browse files
committed
change inputPanel layout
add dummy sample buttons
1 parent 6d8a64f commit 90a9bb5

1 file changed

Lines changed: 18 additions & 7 deletions

File tree

  • sentiment-analysis-app

sentiment-analysis-app/app.R

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,28 @@ to_title <- function(x) {
1313
ui <- fluidPage(
1414
titlePanel("Sentiment Analysis"),
1515
shiny::inputPanel(
16+
column(
17+
8,
1618
textInput(
1719
"raw_title",
1820
"Movie Title",
1921
placeholder = "Title of the movie"
20-
),
21-
textAreaInput(
22-
"raw_review",
23-
"Movie Review",
24-
placeholder = "Type your review here..."
25-
),
26-
actionButton("submit", "Submit Review")
22+
),
23+
textAreaInput(
24+
"raw_review",
25+
"Movie Review",
26+
placeholder = "Type your review here..."
27+
),
28+
actionButton("submit", "Submit Review"),
29+
br(),
30+
br()
31+
),
32+
column(
33+
4,
34+
actionButton("sample_1", "Sample Review 1"),
35+
actionButton("sample_2", "Sample Review 2"),
36+
actionButton("sample_3", "Sample Review 3")
37+
)
2738
),
2839
shiny::fluidRow(
2940
uiOutput("review")

0 commit comments

Comments
 (0)