Skip to content

Commit

Permalink
use shinydisconnect in demo app
Browse files Browse the repository at this point in the history
  • Loading branch information
daattali committed Jun 9, 2020
1 parent 8c4a165 commit 00d9009
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
2 changes: 2 additions & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ Suggests:
colourpicker,
knitr,
rmarkdown
Remotes:
daattali/shinydisconnect
License: MIT + file LICENSE
SystemRequirements: pandoc with https support
LazyData: true
Expand Down
22 changes: 11 additions & 11 deletions inst/examples/demo/ui.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ share <- list(
)

fluidPage(
shinydisconnect::disconnectMessage2(),
title = paste0("shinyalert package ", as.character(packageVersion("shinyalert"))),
tags$head(
includeCSS(file.path('www', 'style.css')),
Expand Down Expand Up @@ -110,17 +111,16 @@ fluidPage(
checkboxInput("animation", "Animation", TRUE)
)
),
hr(),
fluidRow(
"Modal return value (useful when ", tags$code('type="input"'), "):",
textOutput("return", inline = TRUE),
br(), br(),
div(
id = "code-container",
class = "collapse",
verbatimTextOutput("code")
),
tags$button("Show code", href = "javascript:void()", class = "btn btn-default",
`data-toggle` = "collapse", `data-target` = "#code-container"), br(), br()
column(
12,
strong("Modal return value (useful when Type is \"input\"):"),
textOutput("return", inline = TRUE)
)
),
fluidRow(
column(
12, h3("Generated code"), verbatimTextOutput("code")
)
)
)

0 comments on commit 00d9009

Please sign in to comment.