Debian Codegraph @

man/passwordInput.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/input-password.R
3 \name{passwordInput}
4 \alias{passwordInput}
5 \title{Create a password input control}
6 \usage{
7 passwordInput(
8 inputId,
9 label,
10 value = "",
11 width = NULL,
12 placeholder = NULL,
13 ...,
14 updateOn = c("change", "blur")
15 )
16 }
17 \arguments{
18 \item{inputId}{The \code{input} slot that will be used to access the value.}
19
20 \item{label}{Display label for the control, or \code{NULL} for no label.}
21
22 \item{value}{Initial value.}
23
24 \item{width}{The width of the input, e.g. \code{'400px'}, or \code{'100\%'};
25 see \code{\link[=validateCssUnit]{validateCssUnit()}}.}
26
27 \item{placeholder}{A character string giving the user a hint as to what can
28 be entered into the control. Internet Explorer 8 and 9 do not support this
29 option.}
30
31 \item{...}{Ignored, included to require named arguments and for future
32 feature expansion.}
33
34 \item{updateOn}{A character vector specifying when the input should be
35 updated. Options are \code{"change"} (default) and \code{"blur"}. Use \code{"change"} to
36 update the input immediately whenever the value changes. Use \code{"blur"}to
37 delay the input update until the input loses focus (the user moves away
38 from the input), or when Enter is pressed (or Cmd/Ctrl + Enter for
39 \code{\link[=textAreaInput]{textAreaInput()}}).}
40 }
41 \value{
42 A text input control that can be added to a UI definition.
43 }
44 \description{
45 Create an password control for entry of passwords.
46 }
47 \section{Server value}{
48
49 A character string of the password input. The default value is \code{""}
50 unless \code{value} is provided.
51 }
52
53 \examples{
54 ## Only run examples in interactive R sessions
55 if (interactive()) {
56
57 ui <- fluidPage(
58 passwordInput("password", "Password:"),
59 actionButton("go", "Go"),
60 verbatimTextOutput("value")
61 )
62 server <- function(input, output) {
63 output$value <- renderText({
64 req(input$go)
65 isolate(input$password)
66 })
67 }
68 shinyApp(ui, server)
69 }
70 }
71 \seealso{
72 \code{\link[=updateTextInput]{updateTextInput()}}
73
74 Other input elements:
75 \code{\link{actionButton}()},
76 \code{\link{checkboxGroupInput}()},
77 \code{\link{checkboxInput}()},
78 \code{\link{dateInput}()},
79 \code{\link{dateRangeInput}()},
80 \code{\link{fileInput}()},
81 \code{\link{numericInput}()},
82 \code{\link{radioButtons}()},
83 \code{\link{selectInput}()},
84 \code{\link{sliderInput}()},
85 \code{\link{submitButton}()},
86 \code{\link{textAreaInput}()},
87 \code{\link{textInput}()},
88 \code{\link{varSelectInput}()}
89 }
90 \concept{input elements}