Debian Codegraph @

man/textAreaInput.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/input-textarea.R
3 \name{textAreaInput}
4 \alias{textAreaInput}
5 \title{Create a textarea input control}
6 \usage{
7 textAreaInput(
8 inputId,
9 label,
10 value = "",
11 width = NULL,
12 height = NULL,
13 cols = NULL,
14 rows = NULL,
15 placeholder = NULL,
16 resize = NULL,
17 ...,
18 autoresize = FALSE,
19 updateOn = c("change", "blur")
20 )
21 }
22 \arguments{
23 \item{inputId}{The \code{input} slot that will be used to access the value.}
24
25 \item{label}{Display label for the control, or \code{NULL} for no label.}
26
27 \item{value}{Initial value.}
28
29 \item{width}{The width of the input, e.g. \code{'400px'}, or \code{'100\%'};
30 see \code{\link[=validateCssUnit]{validateCssUnit()}}.}
31
32 \item{height}{The height of the input, e.g. \code{'400px'}, or \code{'100\%'}; see
33 \code{\link[=validateCssUnit]{validateCssUnit()}}.}
34
35 \item{cols}{Value of the visible character columns of the input, e.g. \code{80}.
36 This argument will only take effect if there is not a CSS \code{width} rule
37 defined for this element; such a rule could come from the \code{width} argument
38 of this function or from a containing page layout such as
39 \code{\link[=fluidPage]{fluidPage()}}.}
40
41 \item{rows}{The value of the visible character rows of the input, e.g. \code{6}.
42 If the \code{height} argument is specified, \code{height} will take precedence in the
43 browser's rendering.}
44
45 \item{placeholder}{A character string giving the user a hint as to what can
46 be entered into the control. Internet Explorer 8 and 9 do not support this
47 option.}
48
49 \item{resize}{Which directions the textarea box can be resized. Can be one of
50 \code{"both"}, \code{"none"}, \code{"vertical"}, and \code{"horizontal"}. The default, \code{NULL},
51 will use the client browser's default setting for resizing textareas.}
52
53 \item{...}{Ignored, included to require named arguments and for future
54 feature expansion.}
55
56 \item{autoresize}{If \code{TRUE}, the textarea will automatically resize to fit
57 the input text.}
58
59 \item{updateOn}{A character vector specifying when the input should be
60 updated. Options are \code{"change"} (default) and \code{"blur"}. Use \code{"change"} to
61 update the input immediately whenever the value changes. Use \code{"blur"}to
62 delay the input update until the input loses focus (the user moves away
63 from the input), or when Enter is pressed (or Cmd/Ctrl + Enter for
64 \code{\link[=textAreaInput]{textAreaInput()}}).}
65 }
66 \value{
67 A textarea input control that can be added to a UI definition.
68 }
69 \description{
70 Create a textarea input control for entry of unstructured text values.
71 }
72 \section{Server value}{
73
74 A character string of the text input. The default value is \code{""}
75 unless \code{value} is provided.
76 }
77
78 \examples{
79 ## Only run examples in interactive R sessions
80 if (interactive()) {
81
82 ui <- fluidPage(
83 textAreaInput("caption", "Caption", "Data Summary", width = "1000px"),
84 verbatimTextOutput("value")
85 )
86 server <- function(input, output) {
87 output$value <- renderText({ input$caption })
88 }
89 shinyApp(ui, server)
90
91 }
92
93 }
94 \seealso{
95 \code{\link[=updateTextAreaInput]{updateTextAreaInput()}}
96
97 Other input elements:
98 \code{\link{actionButton}()},
99 \code{\link{checkboxGroupInput}()},
100 \code{\link{checkboxInput}()},
101 \code{\link{dateInput}()},
102 \code{\link{dateRangeInput}()},
103 \code{\link{fileInput}()},
104 \code{\link{numericInput}()},
105 \code{\link{passwordInput}()},
106 \code{\link{radioButtons}()},
107 \code{\link{selectInput}()},
108 \code{\link{sliderInput}()},
109 \code{\link{submitButton}()},
110 \code{\link{textInput}()},
111 \code{\link{varSelectInput}()}
112 }
113 \concept{input elements}