View source: R/input-textual.R
textInput | R Documentation |
A text input. A group text input is an alternative text input. The group text input allows you to include static prefixes or buttons with a standard text input.
numberInput()
is a simple wrapper around textInput()
with type
set to
"number"
and explicit arguments for specifying a min value, max value, and
the step amount. Use updateTextInput()
to update a number input.
textInput(..., id, value = NULL, placeholder = NULL, type = "text")
numberInput(
...,
id,
value = NULL,
placeholder = NULL,
min = NULL,
max = NULL,
step = 1
)
updateTextInput(
id,
value = NULL,
enable = NULL,
disable = NULL,
valid = NULL,
invalid = NULL,
session = getDefaultReactiveDomain()
)
groupTextInput(
...,
id,
value = NULL,
placeholder = NULL,
type = "text",
left = NULL,
right = NULL
)
updateGroupTextInput(
id,
value = NULL,
enable = NULL,
disable = NULL,
valid = NULL,
invalid = NULL,
session = getDefaultReactiveDomain()
)
value |
A character string or a value coerced to a character string specifying the default value of the textual input. |
placeholder |
A character string specifying placeholder text for the
input, defaults to |
type |
One of " For details on a particular type please see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input. |
min |
A number specifying the minimum allowed value of the number input,
defaults to |
max |
A number specifying the maximum allowed value of the number input,
defaults to |
step |
A number specifying the increment step of the number input, defaults to 1. |
left , right |
A character vector specifying static addons or
If
The button does not change the value of the group input. However, the input no longer triggers event when the text box is updated. Instead the value is updated when a button is clicked. Static addons are still applied to the group input value.
The value of the group input does chance depending on the clicked dropdown menu item. The value of the input group is the concatenation of the dropdown input value, the value of the text input, and any static addons. |
Other inputs:
checkbarInput()
,
chipInput()
,
fileInput()
,
formInput()
,
input_button()
,
input_checkbox()
,
listGroupInput()
,
menuInput()
,
radioInput()
,
radiobarInput()
,
rangeInput()
,
selectInput()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.