Skip to contents

Generates a "?" icon button wrapped in a bslib::popover that displays title and description from av_help_info. Use this for sidebar elements, tab headers, and other non-plot UI components where av_ui_plot_card() is not appropriate.

Usage

av_ui_help_popover(help_id)

Arguments

help_id

Character. The ID in av_help_info for metadata.

Value

A bslib::popover shiny.tag.

Examples

# Attach next to a sidebar control to explain it from the av_help_info entry.
pop <- av_ui_help_popover("ui_score_switcher")
class(pop)
#> [1] "bslib_fragment" "shiny.tag"     
grepl("Quantile Score", as.character(pop), fixed = TRUE)
#> [1] TRUE