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, autocapitalize: Option[String] = None, inputWrapper: InputWrapper = InputWrapper.empty) extends Product with Serializable
Parameters to GovukInput Twirl 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- autocapitalize
optional
autocapitalizeattribute for theinput- inputWrapper
additional CSS classes/attributes to apply to the input wrapper
- Alphabetic
- By Inheritance
- Input
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
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, autocapitalize: Option[String] = None, inputWrapper: InputWrapper = InputWrapper.empty)
- 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- autocapitalize
optional
autocapitalizeattribute for theinput- inputWrapper
additional CSS classes/attributes to apply to the input wrapper
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- val attributes: Map[String, String]
- val autocapitalize: Option[String]
- val autocomplete: Option[String]
- val classes: String
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
- val describedBy: Option[String]
- val disabled: Option[Boolean]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val errorMessage: Option[ErrorMessage]
- val formGroup: FormGroup
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val hint: Option[Hint]
- val id: String
- val inputType: String
- val inputWrapper: InputWrapper
- val inputmode: Option[String]
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val label: Label
- val name: String
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val pattern: Option[String]
- val prefix: Option[PrefixOrSuffix]
- val spellcheck: Option[Boolean]
- val suffix: Option[PrefixOrSuffix]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- val value: Option[String]
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated