Description Usage Arguments Details Examples
This creates a default text input using Semantic UI. The input is available
under input[[input_id]]
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
input_id |
Input name. Reactive value is available under |
label |
character with label put on the left from the input |
value |
Pass value if you want to have default text. |
type |
Change depending what type of input is wanted. See details for options. |
placeholder |
Text visible in the input when nothing is inputted. |
attribs |
A named list of attributes to assign to the input. |
inputId |
Input name. The same as |
width |
The width of the input, eg. "40px" |
The following type
s are allowed:
text The standard input
textarea An extended space for text
password A censored version of the text input
email A special version of the text input specific for email addresses
url A special version of the text input specific for URLs
tel A special version of the text input specific for telephone numbers
The inputs are updateable by using updateTextInput
or
updateTextAreaInput
if type = "textarea"
.
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Only run examples in interactive R sessions
if (interactive()) {
library(shiny)
library(shiny.semantic)
ui <- semanticPage(
uiinput(
text_input("ex", label = "Your text", type = "text", placeholder = "Enter Text")
)
)
server <- function(input, output, session) {
}
shinyApp(ui, server)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.