Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pre-release tm_front_page document update #654

Merged
merged 6 commits into from
Feb 26, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
merge back from pre-release
kartikeyakirar committed Feb 23, 2024
commit e7ced827882c8d088ea000106fb157073d9f566a
8 changes: 6 additions & 2 deletions R/tm_front_page.R
Original file line number Diff line number Diff line change
@@ -14,7 +14,6 @@
#' @param footnotes (`character` vector) of text to be shown at the bottom of the module, for each
#' element, if named the name is shown first in bold, followed by the value.
#' @param show_metadata (`logical`) indicating whether the metadata of the datasets be available on the module.
#' @return Object of class `teal_module` to be used in `teal` applications.
#'
#' @examples
#'
@@ -89,6 +88,8 @@ tm_front_page <- function(label = "Front page",
}

# UI function for the front page module.
#' @noRd
#' @keywords internal
ui_front_page <- function(id, ...) {
args <- list(...)
ns <- NS(id)
@@ -128,6 +129,8 @@ ui_front_page <- function(id, ...) {
}

# Server function for the front page module.
#' @noRd
#' @keywords internal
srv_front_page <- function(id, data, tables, show_metadata) {
checkmate::assert_class(data, "reactive")
checkmate::assert_class(isolate(data()), "teal_data")
@@ -171,7 +174,8 @@ srv_front_page <- function(id, data, tables, show_metadata) {
})
}

# utils functions
## utils functions

#' @noRd
#' @keywords internal
get_header_tags <- function(header_text) {