Server-side function for dynamic dropdownMenu.
Usage
render_dropdown_menu(expr, env = parent.frame(), quoted = FALSE)
renderDropdownMenu(expr, env = parent.frame(), quoted = FALSE)
Arguments
- expr
dropdownMenu.
- env
The environment in which to evaluate expr.
- quoted
Is expr a quoted expression (with
quote()
)? This is useful if you want to save an expression in a variable.
Functions
renderDropdownMenu()
: Create a dropdown menu output (alias forrender_dropdown menu
for compatibility withshinydashboard
)
Examples
if (FALSE) {
dropdownMenuOutput("dropdown")
output$dropdown <- renderDropdownMenu({
dropdownMenu(messageItem("Michał", "Test message", color = "teal"),
messageItem("Marek", "Another test!", icon = "warning", color = "red"))
})
}