Radios

uk.gov.hmrc.govukfrontend.views.viewmodels.radios.Radios
See theRadios companion object
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

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
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product