Skip to content

Commit

Permalink
example with the closing of the browser
Browse files Browse the repository at this point in the history
  • Loading branch information
m7pr committed Oct 24, 2023
1 parent 8f111e8 commit 4eb1a39
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
23 changes: 23 additions & 0 deletions R/tm_landing_popup.R
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,29 @@
#' shinyApp(app2$ui, app2$server)
#' }
#'
#' app3 <- teal::init(
#' data = teal.data::dataset("iris", iris),
#' modules = teal::modules(
#' teal::tm_landing_popup(
#' title = "Welcome",
#' content = "App will close, once you click the rejection button!",
#' buttons = tagList(
#' modalButton("Proceed"),
#' actionButton("close", "Reject", onclick = "window.close()")
#' )
#' ),
#' module(
#' label = "example module",
#' server = function(input, output, session, data) {},
#' ui = function(id, ...) div(p("Example text"))
#' )
#' )
#' )
#'
#' if (interactive()) {
#' shinyApp(app3$ui, app3$server, options = list(launch.browser = TRUE))
#' }
#'
#' @export
tm_landing_popup <-
function(label = "Landing Popup",
Expand Down
23 changes: 23 additions & 0 deletions man/tm_landing_popup.Rd

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

0 comments on commit 4eb1a39

Please sign in to comment.