-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui.R
39 lines (32 loc) · 1.01 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
library(shiny)
incrementButton <- function(inputID, value = 0) {
tagList(
singleton(tags$head(tags$script(src = "alert.js"),tags$link(rel = 'stylesheet', type = 'text/css', href = 'css/bootstrap.css'))),
tags$button(
id=inputID,
class="increment btn btn-primary",
as.character(value)
)
)
}
# Define UI for application that plots random distributions
shinyUI(pageWithSidebar(
# Application title
headerPanel("Hello Shiny!"),
# Sidebar with a slider input for number of observations
sidebarPanel(
sliderInput("obs",
"Number of observations:",
min = 0,
max = 1000,
value = 500)
,
incrementButton("thisthis")
),
# Show a plot of the generated distribution
mainPanel(
plotOutput("distPlot"),
HTML('<div><a href="#" id="tooltip" data-toggle="tooltip" title="tooltip message will be here.">hover over me</a></div>'),
HTML('<a href="#" id="blob" class="btn large primary" rel="popover">hover for popover</a>')
)
))