Learn R Programming

yonder (version 0.1.0)

invalidateInput: Validate, invalidate input

Description

invalidateInput() and validateInput() are new utilities for conveying information to users. invalidateInput() adds text to an input letting a user know why an input is valid or invalid. Additionally, invalidateInput() will immediately freeze an input. As a result, further observers or reactives using the input are not triggered. validateInput() will immediately thaw the reactive input, thus allowing subsequent observers and reactives to trigger.

Usage

invalidateInput(id, message = NULL,
  session = getDefaultReactiveDomain())

validateInput(id, session = getDefaultReactiveDomain())

Arguments

id

A character string specifying the id of an input.

message

A character string specifying the message, default to NULL, in which case the input is highlighted, but no message is shown.

session

A reactive context, defaults to getDefaultReactiveDomain().

See Also

Other utilities: enableInput, updateInput