Implicits

uk.gov.hmrc.hmrcfrontend.views.Implicits
See theImplicits companion object

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Show all
Known subtypes
object implicits
object Implicits

Members list

Type members

Classlikes

implicit class RichHtml(html: Html) extends RichHtml

Attributes

Supertypes
class RichHtml
class Object
trait Matchable
class Any
implicit class RichOptionString(optString: Option[String]) extends RichOptionString

Attributes

Supertypes
class Object
trait Matchable
class Any
implicit class RichString(s: String) extends RichString

Attributes

Supertypes
class RichString
class Object
trait Matchable
class Any

Inherited classlikes

implicit class RichCharacterCount(characterCount: CharacterCount)(implicit val messages: Messages) extends ImplicitsSupport[CharacterCount]

Attributes

Inherited from:
RichCharacterCountSupport
Supertypes
class Object
trait Matchable
class Any
implicit class RichDateInput(dateInput: DateInput)(implicit val messages: Messages) extends ImplicitsSupport[DateInput]

Attributes

Inherited from:
RichDateInputSupport
Supertypes
class Object
trait Matchable
class Any
implicit class RichErrorSummary[T](errorSummary: ErrorSummary)(implicit val messages: Messages)

Extension methods to hydrate an ErrorSummary with the errors found in a Play form.

Extension methods to hydrate an ErrorSummary with the errors found in a Play form.

Error messages are hyperlinked to the HTML input elements corresponding to the Play field. For situations where the form field does not correspond to an HTML input element, for example, a composite field such as a date, provide a mapping from the composite field to Play field corresponding to the first HTML input element in the group.

For example:

 @govukErrorSummary(ErrorSummary().withFormErrorsAsText(dateInputForm, mapping = Map("date" -> "date.day")))

Attributes

Inherited from:
RichErrorSummarySupport
Supertypes
class Object
trait Matchable
class Any

Implicits

Implicits

final implicit def RichHtml(html: Html): RichHtml
final implicit def RichOptionString(optString: Option[String]): RichOptionString
final implicit def RichString(s: String): RichString

Inherited implicits

final implicit def RichCharacterCount(characterCount: CharacterCount)(implicit messages: Messages): RichCharacterCount

Attributes

Inherited from:
RichCharacterCountSupport
final implicit def RichDateInput(dateInput: DateInput)(implicit messages: Messages): RichDateInput

Attributes

Inherited from:
RichDateInputSupport
final implicit def RichErrorSummary[T](errorSummary: ErrorSummary)(implicit messages: Messages): RichErrorSummary[T]

Extension methods to hydrate an ErrorSummary with the errors found in a Play form.

Extension methods to hydrate an ErrorSummary with the errors found in a Play form.

Error messages are hyperlinked to the HTML input elements corresponding to the Play field. For situations where the form field does not correspond to an HTML input element, for example, a composite field such as a date, provide a mapping from the composite field to Play field corresponding to the first HTML input element in the group.

For example:

 @govukErrorSummary(ErrorSummary().withFormErrorsAsText(dateInputForm, mapping = Map("date" -> "date.day")))

Attributes

Inherited from:
RichErrorSummarySupport