View source: R/dropdown_menu_output.R
render_dropdown_menu | R Documentation |
Server-side function for dynamic dropdownMenu.
render_dropdown_menu(expr, env = parent.frame(), quoted = FALSE)
renderDropdownMenu(expr, env = parent.frame(), quoted = FALSE)
expr |
dropdownMenu. |
env |
The environment in which to evaluate expr. |
quoted |
Is expr a quoted expression (with |
A dynamic dropdown menu that can be assigned to output.
renderDropdownMenu()
: Create a dropdown menu output (alias for render_dropdown
menu
for compatibility with shinydashboard
)
## Not run:
dropdownMenuOutput("dropdown")
output$dropdown <- renderDropdownMenu({
dropdownMenu(messageItem("MichaĆ", "Test message", color = "teal"),
messageItem("Marek", "Another test!", icon = "warning", color = "red"))
})
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.