shiny_iconlink: Create link containing Shiny icon

View source: R/shiny.R

shiny_iconlinkR Documentation

Create link containing Shiny icon

Description

You can use this helper function to wrap link element around a shiny::[icon][shiny::icon]. It may be useful to attach a modal window to (or embed a popover into) into such a link.

Usage

shiny_iconlink(name = "info-circle", id = NULL, ...)

Arguments

name

character, name of the icon, passed to shiny::[icon][shiny::icon]

id

character, option ID for the link

...

other arguments passed to shiny::[icon][shiny::icon]

Value

htmltools::[tag][htmltools::tag], <a/>

See Also

shinyInput_label_embed(), shiny::[icon][shiny::icon], bs_attach_modal(), bs_embed_popover(), bs_embed_tooltip()

Examples

shiny_iconlink()

shiny_iconlink() %>%
  bs_embed_popover(title = "Help!", content = "I need somebody")


bsplus documentation built on Nov. 16, 2022, 1:11 a.m.