Skip to contents

Generates a small descriptive text block to be placed at the top of a Shiny tab panel. Pulls text from av_help_info.

Usage

av_ui_tab_intro(help_id)

Arguments

help_id

Character. The ID in av_help_info (e.g., "tab_dashboard").

Value

A shiny::tags$div element.

Examples

intro <- av_ui_tab_intro("tab_dashboard")
class(intro)
#> [1] "shiny.tag"
as.character(intro)
#> [1] "<div class=\"mb-3 text-muted\" style=\"font-size: 0.9em;\">\n  <i class=\"fas fa-circle-info me-1\" role=\"presentation\" aria-label=\"circle-info icon\"></i>\n  Overview of your variant dataset. Value boxes summarize key metrics (total entries, unique variants, genes, modalities, mean score). The QC zone shows cumulative score distributions and saturation diagnostics. The biology zone shows the scored genomic interval and effect directionality across groups.\n</div>"

# An unregistered id falls back to placeholder text, so a tab still renders.
as.character(av_ui_tab_intro("not_a_registered_id"))
#> [1] "<div class=\"mb-3 text-muted\" style=\"font-size: 0.9em;\">\n  <i class=\"fas fa-circle-info me-1\" role=\"presentation\" aria-label=\"circle-info icon\"></i>\n  No description available for this element.\n</div>"