uk.gov.hmrc.govukfrontend.views.viewmodels.checkboxes
Members list
Type members
Classlikes
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object ExclusiveCheckbox
object CheckboxBehaviour
Attributes
- Companion
- trait
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
CheckboxBehaviour.type
final case class CheckboxItem(content: Content, id: Option[String], name: Option[String], value: String, label: Option[Label], hint: Option[Hint], checked: Boolean, conditionalHtml: Option[Html], disabled: Boolean, attributes: Map[String, String], behaviour: Option[CheckboxBehaviour], divider: Option[String])
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
object CheckboxItem
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
CheckboxItem.type
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
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
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
object Checkboxes
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
Checkboxes.type
case object ExclusiveCheckbox extends CheckboxBehaviour
Attributes
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait CheckboxBehaviourclass Objecttrait Matchableclass AnyShow all
- Self type
-
ExclusiveCheckbox.type
In this article