RichRadios

uk.gov.hmrc.govukfrontend.views.implicits.RichRadiosSupport.RichRadios
implicit class RichRadios(radios: Radios)(implicit val messages: Messages) extends ImplicitsSupport[Radios]

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

override def withFormField(field: Field): Radios

Extension method to allow a Play form Field to be used to add certain parameters in a Radios, specifically errorMessage, idPrefix, name, and checked (for a specific RadioItem). Note these values will only be added from the Field if they are not specifically defined in the Radios object. Form errors will be bound as Text objects.

Extension method to allow a Play form Field to be used to add certain parameters in a Radios, specifically errorMessage, idPrefix, name, and checked (for a specific RadioItem). Note these values will only be added from the Field if they are not specifically defined in the Radios object. Form errors will be bound as Text objects.

Attributes

Definition Classes
override def withFormFieldWithErrorAsHtml(field: Field): Radios

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

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

Attributes

Definition Classes
def withHeading(heading: Content): Radios
def withHeadingAndSectionCaption(heading: Content, sectionCaption: Content): Radios

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