orTextual {wilson} | R Documentation |
orTextual module server logic
Description
Provides server logic for the orTextual module.
Usage
orTextual(
input,
output,
session,
choices,
selected = NULL,
label = "Column",
delimiter = NULL,
multiple = TRUE,
contains = FALSE,
reset = NULL,
parse_mode = TRUE
)
Arguments
input |
Shiny's input object. |
output |
Shiny's output object. |
session |
Shiny's session object. |
choices |
A list or a character vector with the possible choices offered in the UI. See |
selected |
The initially selected value. See |
label |
A character vector of length one with the label for the |
delimiter |
A single character indicating if and how items are delimited (default: |
multiple |
Whether or not selection of multiple items is allowed. |
contains |
Logical variable. If TRUE shows module as a textsearch input. |
reset |
A reactive which will trigger a module reset on change. |
parse_mode |
Boolean to enable text to selection parsing. Ignored if multiple = FALSE or contains = TRUE. |
Value
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.