RichDateInput

uk.gov.hmrc.hmrcfrontend.views.implicits.RichDateInputSupport.RichDateInput
implicit class RichDateInput(dateInput: DateInput)(implicit val messages: Messages) extends ImplicitsSupport[DateInput]

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

Method to allow a Play form Field to be used to populate parameters in a DateInput. This method will populate with three InputItems corresponding to the day, month and year. Form errors will be bound as Text objects.

Method to allow a Play form Field to be used to populate parameters in a DateInput. This method will populate with three InputItems corresponding to the day, month and year. Form errors will be bound as Text objects.

Attributes

Method to allow a Play form Field to be used to populate parameters in a DateInput, with form errors bound as HtmlContent objects.

Method to allow a Play form Field to be used to populate parameters in a DateInput, with form errors bound as HtmlContent objects.

Attributes

def withHeading(heading: Content): DateInput
def withHeadingAndSectionCaption(heading: Content, sectionCaption: Content): DateInput
def withMonthYearFormField(field: Field): DateInput

Method to allow a Play form Field to be used to populate parameters in a DateInput. This method will populate with two InputItems corresponding to the month and year only. Form errors will be bound as Text objects.

Method to allow a Play form Field to be used to populate parameters in a DateInput. This method will populate with two InputItems corresponding to the month and year only. Form errors will be bound as Text objects.

Attributes

Method to allow a Play form Field to be used to populate parameters in a DateInput, with form errors bound as HtmlContent objects.

Method to allow a Play form Field to be used to populate parameters in a DateInput, with form errors bound as HtmlContent objects.

Attributes

Deprecated methods

override def withFormField(field: Field): DateInput

Deprecated method to allow a Play form Field to be used to populate parameters in a DateInput, if they have not already been set to a non-default value. This method assumes that dateInput.items will either equal Seq.empty or will have exactly three InputItems corresponding to the day, month and year. Form errors will be bound as Text objects.

Deprecated method to allow a Play form Field to be used to populate parameters in a DateInput, if they have not already been set to a non-default value. This method assumes that dateInput.items will either equal Seq.empty or will have exactly three InputItems corresponding to the day, month and year. Form errors will be bound as Text objects.

Attributes

Deprecated
true
Definition Classes
override def withFormFieldWithErrorAsHtml(field: Field): DateInput

Extension method to allow a Play form Field to be used to populate parameters in a DateInput, as per withFormField, with form errors bound as HtmlContent objects.

Extension method to allow a Play form Field to be used to populate parameters in a DateInput, as per withFormField, with form errors bound as HtmlContent objects.

Attributes

Deprecated
true
Definition Classes

Inherited methods

protected def withHeadingLabel[A](original: A, headingContent: Content, captionContent: Option[Content])(update: (A, Label) => A): A

Attributes

Inherited from:
ImplicitsSupport
protected def withHeadingLegend[A](original: A, headingContent: Content, captionContent: Option[Content])(update: (A, Legend) => A): A

Attributes

Inherited from:
ImplicitsSupport

Implicits

Implicits

implicit val messages: Messages