menuInput: Menu inputs

View source: R/input-menu.R

menuInputR Documentation

Description

A toggleable dropdown menu input. Menu inputs may be used as standalone reactive inputs or within a navInput(). For building custom, more complex dropdown elements please see dropdown().

Usage

menuInput(
  id,
  label,
  choices = NULL,
  values = choices,
  selected = NULL,
  ...,
  direction = "down",
  align = "left"
)

updateMenuInput(
  id,
  label = NULL,
  choices = NULL,
  values = choices,
  selected = NULL,
  enable = NULL,
  disable = NULL,
  session = getDefaultReactiveDomain()
)

Arguments

label

A character string or tag element specifying the label of the menu's toggle button.

choices

A character vector specifying the choice text of the menu's items.

values

A character vector specifying the values of the menu's items, defaults to choices.

direction

One of "up", "right", "down", or "left" specifying which direction the menu opens, defaults to "down".

align

One or "right" or "left" specifying which side of the toggle button the menu aligns to, defaults to "left".'

See Also

Other inputs: checkbarInput(), chipInput(), fileInput(), formInput(), input_button(), input_checkbox(), listGroupInput(), radioInput(), radiobarInput(), rangeInput(), selectInput(), textInput()


nteetor/yonder documentation built on June 12, 2025, 3:49 a.m.