Learn R Programming

yonder (version 0.1.0)

textInput: Textual inputs

Description

Different types of textual inputs are provided to best support mobile keyboards and assistive technologies. A password input will mask its contents. Email inputs offer client-side validation depending on the browser.

Usage

textInput(id, value = NULL, placeholder = NULL, ...)

searchInput(id, value = NULL, placeholder = NULL, ...)

emailInput(id, value = NULL, placeholder = NULL, ...)

urlInput(id, value = NULL, placeholder = NULL, ...)

telephoneInput(id, value = NULL, placeholder = NULL, ...)

passwordInput(id, value = NULL, placeholder = NULL, ...)

numberInput(id, value = NULL, placeholder = NULL, ...)

Arguments

id

A character string specifying the id of the reactive input.

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 NULL, in which case there is no placeholder text.

...

Additional named arguments passed as HTML attributes to the parent element.

See Also

Other inputs: buttonGroupInput, buttonInput, checkboxInput, chipInput, fileInput, formInput, groupInput, listGroupInput, menuInput, navInput, radioInput, rangeInput, selectInput, sliderInput

Examples

Run this code
# NOT RUN {
### Basic text

textInput(id = "text")

### Search

searchInput(id = "search")

### Email

emailInput(id = "email")

### URLs

urlInput(id = "url")

### Telephone numbers

telephoneInput(id = "tele")

### Passwords

passwordInput(id = "password")

### Numbers

numberInput(id = "num")

# }

Run the code above in your browser using DataLab