input_menu: Menu inputs

View source: R/input-menu.R

input_menuR Documentation

Menu inputs

Description

A dropdown menu.

Usage

input_menu(
  id,
  label,
  choices,
  ...,
  values = choices,
  disable = NULL,
  direction = c("down", "up", "left", "right"),
  align = c("left", "right"),
  close = c("auto", "inside", "outside", "manual")
)

update_menu_input(
  id,
  label = NULL,
  choices = NULL,
  values = choices,
  select = NULL,
  disable = NULL,
  session = get_current_session()
)

Arguments

id

A character string. The id of the reactive input.

label

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

choices

A character vector or list. The labels for the input choices.

...

Optional named arguments specifying HTML attributes for the input element.

values

A character vector. The values for the input, defaults to choices.

disable

A character vector. The values disabled by default.

direction

A character string.

align

<responsive> A character vector.

close

A character string.

select

A character vector. The values selected by default, one or more of values.

session

A shiny session object.

See Also

Other inputs: fileInput(), input_button(), input_checkbox(), input_checkbox_group(), input_chip(), input_form(), input_list_group(), input_radio_group(), radiobarInput(), rangeInput(), selectInput(), textInput()


nteetor/dull documentation built on July 4, 2025, 8:52 a.m.