Dropdown input component
tuiInputDropdown.RdA focusable dropdown/select input. Selecting an item updates input$<id> and
triggers a server update.
Usage
tuiInputDropdown(
id,
choices,
selected = NULL,
maxMenuHeight = NULL,
width = NULL,
height = NULL,
minHeight = NULL,
maxHeight = NULL,
widthPercent = NULL,
heightPercent = NULL
)
tuiDropDownInput(...)Arguments
- id
A character string used as the input key (
input$<id>).- choices
Non-empty character vector of selectable values.
- selected
Optional selected value. Must be one of
choices. Defaults to the first element ofchoices.Optional maximum visible dropdown menu height (in terminal rows) before enabling internal scrolling with a scrollbar.
- width, height
Optional fixed width/height in terminal cells.
- minHeight, maxHeight
Optional min/max height in terminal cells.
- widthPercent, heightPercent
Optional relative size between
0and1.widthPercentis interpreted bytuiRow()andheightPercentbytuiColumn()for strict main-axis percentages.- ...
Passed through to
tuiInputDropdown().