orTextual: orTextual module server logic

Description Usage Arguments Value

View source: R/orTextual.R

Description

Provides server logic for the orTextual module.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
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 selectInput.

selected

The initially selected value. See selectInput.

label

A character vector of length one with the label for the selectInput.

delimiter

A single character indicating if and how items are delimited (default: NULL indicates no delimitation). Only if contains = FALSE.

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.


wilson documentation built on April 19, 2021, 5:07 p.m.