checked_text_input: Checked text input

Description Usage Arguments Details Value

View source: R/checked_text_input.R

Description

textInput whose value is checked for being useable as an object name

Usage

1
2
3
4
5
6
checked_text_input(input, output, session, .values, .parent,
  .label = NULL, .value = "", .allow_reset = TRUE, .reset = NULL,
  .update_value = NULL, .error_controller = NULL,
  .inline_block = FALSE)

checked_text_input_ui(id)

Arguments

input, output, session

Called by callModule.

.values

The .values list.

.parent

The parent Node object.

.label

The contents of the button or link-usually a text label, but you could also use any other HTML, like an image.

.value

Function without an argument (e.g reactive) or vector containing the initial value of the text input.

.allow_reset

If TRUE, reset to the initial value via an actionButton is enabled.

.reset

Reactive. See 'Details'.

.update_value

Reactive. See 'Details'.

.error_controller

An ErrorController or ErrorControllerList

id

The module's id.

Details

When the value of the reactive passed to .reset changes, the textInput is reset to the last updated value. When the value of the reactive passed to .update_value changes the current value of the text input gets the last updated value.

Value

checked_text_input returns a list of reactives:

name Current value of the text input.
null_name If an error occured NULL, else the current value of the text input.
error If an error occured TRUE, else FALSE.

DavidBarke/QWUtils documentation built on Jan. 13, 2020, 11:52 a.m.