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], day: Option[InputItem], month: Option[InputItem], year: Option[InputItem], values: Map[String, String], 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 - day
-
InputItemfor day element - errorMessage
-
optional
ErrorMessageto display - fieldset
-
optional
Fieldsetused to wrap the date input control - formGroup
-
additional CSS classes/attributes/etc. to apply to the form group
- hint
-
optional
Hintfor the control - id
-
idattribute for the wrapperdiv - items
-
sequence of
InputItems - month
-
InputItemfor month element - namePrefix
-
optional name prefix for each of the inputs in the date control
- year
-
InputItemfor year element
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
object DateInput
final case class InputItem(id: String, name: String, label: Option[String], value: Option[String], error: Option[Boolean], autocomplete: Option[String], pattern: Option[String], classes: String, attributes: Map[String, String], inputmode: Option[String])
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
In this article