Input

uk.gov.hmrc.govukfrontend.views.viewmodels.input.Input
See theInput companion object
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

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
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product