Skip to content

Commit

Permalink
chore: minor doc changes
Browse files Browse the repository at this point in the history
  • Loading branch information
vedhav committed Jan 10, 2025
1 parent 404dbd6 commit 1fb5028
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions R/init.R
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@
init <- function(data,
modules,
filter = teal_slices(),
title = build_app_title(),
header = tags$p(),
footer = tags$p(),
title = NULL,
header = NULL,
footer = NULL,
id = character(0)) {
logger::log_debug("init initializing teal app with: data ('{ class(data) }').")

Expand Down Expand Up @@ -315,7 +315,7 @@ modify_title <- function(
#' )
#'
#' shinyApp(app$ui, app$server)
modify_header <- function(app, header = "test") {
modify_header <- function(app, header = tags$p()) {
res <- app
res$ui <- function(request, ...) {
args <- list(...)
Expand All @@ -342,7 +342,7 @@ modify_header <- function(app, header = "test") {
#' modify_footer("Custom footer")
#'
#' shinyApp(app$ui, app$server)
modify_footer <- function(app, footer = "test") {
modify_footer <- function(app, footer = tags$p()) {
res <- app
res$ui <- function(request, ...) {
args <- list(...)
Expand Down
6 changes: 3 additions & 3 deletions man/init.Rd

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

2 changes: 1 addition & 1 deletion man/modify_footer.Rd

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

2 changes: 1 addition & 1 deletion man/modify_header.Rd

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

0 comments on commit 1fb5028

Please sign in to comment.