uk.gov.hmrc.govukfrontend.views.viewmodels.input

Members list

Type members

Classlikes

case class Input(id: String, name: String, inputType: String, inputmode: Option[String], describedBy: Option[String], value: Option[String], label: Label, hint: Option[Hint], errorMessage: Option[ErrorMessage], formGroup: FormGroup, classes: String, autocomplete: Option[String], pattern: Option[String], attributes: Map[String, String], spellcheck: Option[Boolean], prefix: Option[PrefixOrSuffix], suffix: Option[PrefixOrSuffix], disabled: Option[Boolean], autocapitalize: Option[String], inputWrapper: InputWrapper)

Parameters to GovukInput Twirl template

Parameters to GovukInput Twirl template

Value parameters

attributes

optional additional HTML attributes to apply to the input

autocapitalize

optional autocapitalize attribute for the input

autocomplete

optional autocomplete attribute for the input

classes

optional additional CSS classes to apply to the input

describedBy

optional aria-describedby attribute for the input

disabled

optional disabled attribute for the input

errorMessage

optional ErrorMessage to display

formGroup

additional CSS classes/attributes/etc. to apply to the form group

hint

optional Hint for the control

id

id attribute for the input

inputType

type attribute for the input

inputWrapper

additional CSS classes/attributes to apply to the input wrapper

inputmode

optional inputmode attribute for the input

label

optional Label for the control

name

name attribute for the input

pattern

optional pattern attribute for the input

prefix

optional content to display immediately before the input

spellcheck

optional spellcheck attribute for the input

suffix

optional content to display immediately after the input

value

optional value attribute for the input

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object Input

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Input.type
case class InputWrapper(classes: Option[String], attributes: Map[String, String])

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object InputWrapper

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class PrefixOrSuffix(classes: String, attributes: Map[String, String], content: Content)

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type