uk.gov.hmrc.govukfrontend.views.viewmodels.radios

Members list

Type members

Classlikes

final case class RadioItem(content: Content, id: Option[String], value: Option[String], label: Option[Label], hint: Option[Hint], divider: Option[String], checked: Boolean, conditionalHtml: Option[Html], disabled: Boolean, attributes: Map[String, String])

Attributes

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

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
RadioItem.type
case class Radios(fieldset: Option[Fieldset], hint: Option[Hint], errorMessage: Option[ErrorMessage], formGroup: FormGroup, idPrefix: Option[String], name: String, items: Seq[RadioItem], classes: String, attributes: Map[String, String], value: Option[String])

Parameters to GovukRadios Twirl template

Parameters to GovukRadios Twirl template

Value parameters

attributes

optional additional HTML attributes to apply to the govuk-radios div

classes

optional additional CSS classes to apply to the govuk-radios div

errorMessage

optional ErrorMessage to display

fieldset

optional Fieldset used to wrap the radio button control

formGroup

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

hint

optional Hint for the control

idPrefix

optional id prefix to use for hint & error elements (defaults to name)

items

sequence of RadioItems

name

the name of the input element

value

optional value of the item that should be checked

Attributes

Note

value overrides any checked RadioItem

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

Attributes

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