uk.gov.hmrc.govukfrontend.views.viewmodels.checkboxes

Members list

Type members

Classlikes

sealed trait CheckboxBehaviour

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self 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 Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object CheckboxItem

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self 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-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
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object Checkboxes

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Checkboxes.type
case object ExclusiveCheckbox extends CheckboxBehaviour

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type