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-checkboxesdiv - classes
-
optional additional CSS classes to apply to the
govuk-checkboxesdiv - describedBy
-
optional
aria-describedbyattribute for theinputelement - errorMessage
-
optional
ErrorMessageto display - fieldset
-
optional
Fieldsetused to wrap the checkboxes control - formGroup
-
additional CSS classes/attributes/etc. to apply to the form group
- hint
-
optional
Hintfor the control - idPrefix
-
optional id prefix to use for hint & error elements (defaults to
name) - items
-
sequence of
CheckboxItems - name
-
the name of the
inputelement - values
-
sequence of values of any
itemsthat should bechecked
Attributes
- Note
-
valuesoverride anycheckedCheckboxItem(s) - Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article