Skip to contents

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.

Value

A dynamic dropdown menu that can be assigned to output.

Functions

  • renderDropdownMenu(): Create a dropdown menu output (alias for render_dropdown menu for compatibility with shinydashboard)

Examples

if (FALSE) {
dropdownMenuOutput("dropdown")

output$dropdown <- renderDropdownMenu({
  dropdownMenu(messageItem("Michał", "Test message", color = "teal"),
              messageItem("Marek", "Another test!", icon = "warning", color = "red"))
})
}