uk.gov.hmrc.govukfrontend.views.viewmodels.dateinput

Members list

Type members

Classlikes

case class DateInput(id: String, namePrefix: Option[String], items: Seq[InputItem], hint: Option[Hint], errorMessage: Option[ErrorMessage], formGroup: FormGroup, fieldset: Option[Fieldset], classes: String, attributes: Map[String, String])

Parameters to GovukDateInput Twirl template

Parameters to GovukDateInput Twirl template

Value parameters

attributes

optional additional HTML attributes to apply to the wrapper div

classes

optional additional CSS classes to apply to the wrapper div

errorMessage

optional ErrorMessage to display

fieldset

optional Fieldset used to wrap the date input control

formGroup

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

hint

optional Hint for the control

id

id attribute for the wrapper div

items

sequence of InputItems

namePrefix

optional name prefix for each of the inputs in the date control

Attributes

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

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
DateInput.type
final case class InputItem(id: String, name: String, label: Option[String], value: Option[String], autocomplete: Option[String], pattern: Option[String], classes: String, attributes: Map[String, String], inputmode: Option[String])

Attributes

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

Attributes

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