-
Notifications
You must be signed in to change notification settings - Fork 37
/
ui.R
executable file
·41 lines (37 loc) · 1.21 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
## ui.R
library(shiny)
library(shinydashboard)
library(recommenderlab)
library(data.table)
library(ShinyRatingInput)
library(shinyjs)
source('functions/helpers.R')
shinyUI(
dashboardPage(
skin = "blue",
dashboardHeader(title = "Book Recommender"),
dashboardSidebar(disable = TRUE),
dashboardBody(includeCSS("css/books.css"),
fluidRow(
box(width = 12, title = "Step 1: Rate as many books as possible", status = "info", solidHeader = TRUE, collapsible = TRUE,
div(class = "rateitems",
uiOutput('ratings')
)
)
),
fluidRow(
useShinyjs(),
box(
width = 12, status = "info", solidHeader = TRUE,
title = "Step 2: Discover books you might like",
br(),
withBusyIndicatorUI(
actionButton("btn", "Click here to get your recommendations", class = "btn-warning")
),
br(),
tableOutput("results")
)
)
)
)
)