Packages

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

id attribute for the input

name

name attribute for the input

inputType

type attribute for the input

inputmode

optional inputmode attribute for the input

describedBy

optional aria-describedby attribute for the input

value

optional value attribute for the input

label

optional Label for the control

hint

optional Hint for the control

errorMessage

optional ErrorMessage to 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 autocomplete attribute for the input

pattern

optional pattern attribute for the input

attributes

optional additional HTML attributes to apply to the input

spellcheck

optional spellcheck attribute for the input

prefix

optional content to display immediately before the input

suffix

optional content to display immediately after the input

disabled

optional disabled attribute for the input

autocapitalize

optional autocapitalize attribute for the input

inputWrapper

additional CSS classes/attributes to apply to the input wrapper

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Input
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. 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

    id attribute for the input

    name

    name attribute for the input

    inputType

    type attribute for the input

    inputmode

    optional inputmode attribute for the input

    describedBy

    optional aria-describedby attribute for the input

    value

    optional value attribute for the input

    label

    optional Label for the control

    hint

    optional Hint for the control

    errorMessage

    optional ErrorMessage to 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 autocomplete attribute for the input

    pattern

    optional pattern attribute for the input

    attributes

    optional additional HTML attributes to apply to the input

    spellcheck

    optional spellcheck attribute for the input

    prefix

    optional content to display immediately before the input

    suffix

    optional content to display immediately after the input

    disabled

    optional disabled attribute for the input

    autocapitalize

    optional autocapitalize attribute for the input

    inputWrapper

    additional CSS classes/attributes to apply to the input wrapper

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. val attributes: Map[String, String]
  6. val autocapitalize: Option[String]
  7. val autocomplete: Option[String]
  8. val classes: String
  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  10. val describedBy: Option[String]
  11. val disabled: Option[Boolean]
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. val errorMessage: Option[ErrorMessage]
  14. val formGroup: FormGroup
  15. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  16. val hint: Option[Hint]
  17. val id: String
  18. val inputType: String
  19. val inputWrapper: InputWrapper
  20. val inputmode: Option[String]
  21. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  22. val label: Label
  23. val name: String
  24. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  25. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  26. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  27. val pattern: Option[String]
  28. val prefix: Option[PrefixOrSuffix]
  29. val spellcheck: Option[Boolean]
  30. val suffix: Option[PrefixOrSuffix]
  31. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  32. val value: Option[String]
  33. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  35. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped