input_number | R Documentation |
Adds an direct number input element to a website.
input_number(label, id = label, ..., default = NULL, variable = NULL,
min = NULL, max = NULL, step = NULL, type = "number", class = NULL,
note = NULL, dataview = NULL, floating_label = TRUE, buttons = FALSE,
show_range = FALSE)
label |
Label of the input for the user. |
id |
Unique ID of the element to be created. |
... |
Other attributes to add to the input. |
default |
Default value of the input, the ID of an input to use as the default, or |
variable |
The name of a variable or ID of a variable selector to get a range from. |
min |
The smallest allowed value. |
max |
The largest allowed value. |
step |
Amount to increase or decrease the value by when changed with arrows. |
type |
Name of the input's type – other number-based types like |
class |
Class names to add to the input's list. |
note |
Text to display as a tooltip for the input. |
dataview |
ID of a |
floating_label |
Logical; if |
buttons |
Logical; if |
show_range |
Logical; if |
A character vector of the contents to be added.
## Not run:
input_text("entered_text", "Enter Text:")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.