toolkit.paramText {shinylight}R Documentation

JavaScript function: Returns a text input Toolkit Control.

Description

Any text is permitted unless a validate function is supplied.

Arguments

id

string when getData or setData is called on the container, the value at 'id' refers to this selector. The HTML id is set to 'param-' + id.

container

toolkit.HTMLContainerElement [optional] Where to put the control.

translations

object Optional mapping: translations.id is the name of the control to be displayed and translations.help is help text to be displayed if the user hovers over the label

initial

string Optional initial value for the control

callback

function Optional function to be called whenever the input value changes

validate

function Optional function returning true if passed a value that this control should accept or false otherwise.

Value

Text input control.


[Package shinylight version 1.2 Index]