-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui.R
63 lines (60 loc) · 1.81 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
# ui.R
library(shiny)
library(shinyWidgets)
library(magrittr)
# Define the UI for the Shiny app
ui <- fluidPage(
# Use the Bootstrap theme
theme = "bootstrap.css",
# Main 12-column section
fluidRow(
column(12,
h2("Welcome to my Shiny App"),
p("This is a 12-column section using a Bootstrap theme."),
# Add your content here
virtualSelectInput(
inputId = "amenity.selector",
label = "Amenity:",
selected = "All Amenities",
choices = list(
"All Amenities",
"Women, Girls, and Ladies" = c("(G)", "(L)", "(W)"),
"Racial Minorities" = c("(B)", "(MRC-AF)", "(MRC-L)")
),
showValueAsTags = TRUE,
search = FALSE,
multiple = TRUE
),
pickerInput(
inputId = "state.selector",
label = "State:",
inline = TRUE,
selected = "All",
choices = states,
options = pickerOptions(
actionsBox = TRUE,
size = 10,
selectedTextFormat = "count > 3"
),
multiple = TRUE
),
pickerInput(
inputId = "year.selector",
label = "Year:",
inline = TRUE,
choices = 1965:1995,
selected = 1965,
options = pickerOptions(
actionsBox = TRUE,
size = 10,
selectedTextFormat = "count > 3"
),
multiple = TRUE
),
h3(textOutput("choices.helpertext")),
# For example: plotOutput("my_plot")
p(textOutput("num.locations")),
p(textOutput("test.filter"))
)
)
)