textInput(inputId, label, value = "", width = NULL, placeholder = NULL)
input
slot that will be used to access the value.NULL
for no label.'400px'
, or '100%'
;
see validateCssUnit
.updateTextInput
Other input.elements: actionButton
,
checkboxGroupInput
,
checkboxInput
, dateInput
,
dateRangeInput
, fileInput
,
numericInput
, passwordInput
,
radioButtons
, selectInput
,
sliderInput
, submitButton
,
textAreaInput
## Only run examples in interactive R sessions
if (interactive()) {
ui <- fluidPage(
textInput("caption", "Caption", "Data Summary"),
verbatimTextOutput("value")
)
server <- function(input, output) {
output$value <- renderText({ input$caption })
}
shinyApp(ui, server)
}
Run the code above in your browser using DataLab