Checkboxes

uk.gov.hmrc.govukfrontend.views.viewmodels.checkboxes.Checkboxes
See theCheckboxes companion object
case class Checkboxes(describedBy: Option[String], fieldset: Option[Fieldset], hint: Option[Hint], errorMessage: Option[ErrorMessage], formGroup: FormGroup, idPrefix: Option[String], name: String, items: Seq[CheckboxItem], classes: String, attributes: Map[String, String], values: Set[String])

Parameters to GovukCheckboxes Twirl template

Value parameters

attributes

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

classes

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

describedBy

optional aria-describedby attribute for the input element

errorMessage

optional ErrorMessage to display

fieldset

optional Fieldset used to wrap the checkboxes 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 CheckboxItems

name

the name of the input element

values

sequence of values of any items that should be checked

Attributes

Note

values override any checked CheckboxItem(s)

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