Skip to content

Commit

Permalink
extend tm_landing_popup examples with another module
Browse files Browse the repository at this point in the history
  • Loading branch information
m7pr committed Oct 24, 2023
1 parent ff1cf3b commit 95397de
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions R/tm_landing_popup.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@
#' teal::tm_landing_popup(
#' content = "A place for the welcome message or a disclaimer statement.",
#' buttons = modalButton("Proceed")
#' ),
#' module(
#' label = "example module",
#' server = function(input, output, session, data) {},
#' ui = function(id, ...) div(p("Example text"))
#' )
#' )
#' )
Expand All @@ -36,6 +41,11 @@
#' modalButton("Proceed"),
#' actionButton("close", "Read more", onclick = "window.open('http://google.com', '_blank')")
#' )
#' ),
#' module(
#' label = "example module",
#' server = function(input, output, session, data) {},
#' ui = function(id, ...) div(p("Example text"))
#' )
#' )
#' )
Expand Down
10 changes: 10 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 95397de

Please sign in to comment.