Skip to content

Commit

Permalink
merge 2 example for landing page popup
Browse files Browse the repository at this point in the history
  • Loading branch information
m7pr committed Oct 25, 2023
1 parent e847ac9 commit 10ac427
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 42 deletions.
24 changes: 3 additions & 21 deletions R/landing_popup_module.R
Original file line number Diff line number Diff line change
Expand Up @@ -39,27 +39,9 @@
#' ),
#' buttons = tagList(
#' modalButton("Proceed"),
#' actionButton("close", "Read more",
#' actionButton("read", "Read more",
#' onclick = "window.open('http://google.com', '_blank')"
#' )
#' )
#' ),
#' example_module()
#' )
#' )
#'
#' if (interactive()) {
#' shinyApp(app2$ui, app2$server)
#' }
#'
#' app3 <- teal::init(
#' data = teal.data::dataset("iris", iris),
#' modules = teal::modules(
#' teal::landing_popup_module(
#' title = "Welcome",
#' content = "App will close, once you click the rejection button!",
#' buttons = tagList(
#' modalButton("Proceed"),
#' ),
#' actionButton("close", "Reject", onclick = "window.close()")
#' )
#' ),
Expand All @@ -68,7 +50,7 @@
#' )
#'
#' if (interactive()) {
#' shinyApp(app3$ui, app3$server, options = list(launch.browser = TRUE))
#' shinyApp(app2$ui, app2$server)
#' }
#'
#' @export
Expand Down
24 changes: 3 additions & 21 deletions man/landing_popup_module.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 10ac427

Please sign in to comment.