Skip to contents

Update a field with a new value. Needed by update_fields in a block. Necessary to keep the R object in sync with the Shiny interface state (input state).

Usage

update_field(x, new, env = list())

# S3 method for class 'field'
update_field(x, new, env = list())

# S3 method for class 'hidden_field'
update_field(x, new, env = list())

get_field_name(field, name = "")

Arguments

x

An object inheriting form "field"

new

Value to set

env

Environment with data and other field values

field

Field element.

name

To pass a name if no title attribute.

Value

The modified field.