Skip to content

Commit

Permalink
Merge branch '198_card_labels@main' of https://github.com/insightseng…
Browse files Browse the repository at this point in the history
…ineering/teal into 198_card_labels@main
  • Loading branch information
kartikeyakirar committed Oct 12, 2023
2 parents e2f5b2f + 9ce8b4f commit f7f0e8c
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ include_parent_datanames <- function(dataname, join_keys) {
return(unique(c(parents, dataname)))
}

#' Template function to generate reporter card.
#' Template Function for `TealReportCard` Creation and Customization
#'
#' This function generates a report card with a title,
#' an optional description, and the option to append the filter state list.
Expand All @@ -73,11 +73,7 @@ report_card_template <- function(title, label, description = NULL, with_filter,
title <- if (label == "") title else label
card$set_name(title)
card$append_text(title, "header2")
if (!is.null(description)) {
card$append_text(description, "header3")
}
if (with_filter) {
card$append_fs(filter_panel_api$get_filter_state())
}
if (!is.null(description)) card$append_text(description, "header3")
if (with_filter) card$append_fs(filter_panel_api$get_filter_state())
card
}

0 comments on commit f7f0e8c

Please sign in to comment.