hover_dropdown: Create a Hover Dropdown UI Element

View source: R/hover-dropdown.R

hover_dropdownR Documentation

Create a Hover Dropdown UI Element

Description

This function creates a hover dropdown UI element in a Shiny app. The dropdown appears when the user hovers over the icon.

Usage

hover_dropdown(..., icon_class = "fa fa-cog")

Arguments

...

Arbitrary Shiny UI elements to display in the dropdown.

icon_class

A character string that defines the class of the Font Awesome icon to use.

Value

A Shiny UI element that can be added to the UI definition of the app.

Examples

hover_dropdown(
  icon_class = "fa fa-cog",
  div(class = "custom-item", "Item 1"),
  div(class = "custom-item", "Item 2")
)

bigomics/bigdash documentation built on Sept. 14, 2024, 4:38 a.m.