Provides server logic for the orTextual module.
orTextual(
input,
output,
session,
choices,
selected = NULL,
label = "Column",
delimiter = NULL,
multiple = TRUE,
contains = FALSE,
reset = NULL,
parse_mode = TRUE
)
Shiny's input object.
Shiny's output object.
Shiny's session object.
A list or a character vector with the possible choices offered in the UI. See selectInput
.
The initially selected value. See selectInput
.
A character vector of length one with the label for the selectInput
.
A single character indicating if and how items are delimited (default: NULL
indicates no delimitation). Only if contains = FALSE.
Whether or not selection of multiple items is allowed.
Logical variable. If TRUE shows module as a textsearch input.
A reactive which will trigger a module reset on change.
Boolean to enable text to selection parsing. Ignored if multiple = FALSE or contains = TRUE.
Returns a reactive containing a named list with the label, the selected choices as a character vector (text) and a boolean vector of length length(choices)
(bool), indicating whether a item has been chosen. If no item has been chosen, the return is TRUE
for items.