View source: R/hover-dropdown.R
hover_dropdown | R Documentation |
This function creates a hover dropdown UI element in a Shiny app. The dropdown appears when the user hovers over the icon.
hover_dropdown(..., icon_class = "fa fa-cog")
... |
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. |
A Shiny UI element that can be added to the UI definition of the app.
hover_dropdown(
icon_class = "fa fa-cog",
div(class = "custom-item", "Item 1"),
div(class = "custom-item", "Item 2")
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.