24 lines
562 B
R
24 lines
562 B
R
% Generated by roxygen2: do not edit by hand
|
|
% Please edit documentation in R/htmlSetXLength.R
|
|
\name{htmlSetMaxLength}
|
|
\alias{htmlSetMaxLength}
|
|
\title{Set the maximum length on a text or textarea input}
|
|
\usage{
|
|
htmlSetMaxLength(input, length)
|
|
}
|
|
\arguments{
|
|
\item{input}{The Shiny input to set the length attribute on}
|
|
|
|
\item{length}{The maximum length allowed on the input}
|
|
}
|
|
\value{
|
|
The modified input
|
|
}
|
|
\description{
|
|
Set the maximum length on a text or textarea input
|
|
}
|
|
\examples{
|
|
x <- shiny::textInput("input_id", "Some text input")
|
|
htmlSetMaxLength(x, 50)
|
|
}
|