package input
- Alphabetic
- Public
- Protected
Type Members
- case class Input(id: String = "", name: String = "", inputType: String = "text", inputmode: Option[String] = None, describedBy: Option[String] = None, value: Option[String] = None, label: Label = Label(), hint: Option[Hint] = None, errorMessage: Option[ErrorMessage] = None, formGroup: FormGroup = FormGroup.empty, classes: String = "", autocomplete: Option[String] = None, pattern: Option[String] = None, attributes: Map[String, String] = Map.empty, spellcheck: Option[Boolean] = None, prefix: Option[PrefixOrSuffix] = None, suffix: Option[PrefixOrSuffix] = None, disabled: Option[Boolean] = None) extends Product with Serializable
Parameters to
GovukInputTwirl templateParameters to
GovukInputTwirl template- id
idattribute for theinput- name
nameattribute for theinput- inputType
typeattribute for theinput- inputmode
optional
inputmodeattribute for theinput- describedBy
optional
aria-describedbyattribute for theinput- value
optional
valueattribute for theinput- label
optional
Labelfor the control- hint
optional
Hintfor the control- errorMessage
optional
ErrorMessageto display- formGroup
additional CSS classes/attributes/etc. to apply to the form group
- classes
optional additional CSS classes to apply to the
input- autocomplete
optional
autocompleteattribute for theinput- pattern
optional
patternattribute for theinput- attributes
optional additional HTML attributes to apply to the
input- spellcheck
optional
spellcheckattribute for theinput- prefix
optional content to display immediately before the
input- suffix
optional content to display immediately after the
input- disabled
optional
disabledattribute for theinput
- case class PrefixOrSuffix(classes: String = "", attributes: Map[String, String] = Map.empty, content: Content = Empty) extends Product with Serializable
Value Members
- object Input extends Serializable
- object PrefixOrSuffix extends Serializable