package select
Ordering
- Alphabetic
Visibility
- Public
- Protected
Type Members
- case class Select(id: String = "", name: String = "", items: Seq[html.components.SelectItem] = Nil, describedBy: Option[String] = None, label: html.components.Label = Label(), hint: Option[html.components.Hint] = None, errorMessage: Option[html.components.ErrorMessage] = None, formGroupClasses: String = "", classes: String = "", attributes: Map[String, String] = Map.empty, value: Option[String] = None, disabled: Option[Boolean] = None) extends Product with Serializable
Parameters to
GovukSelectTwirl templateParameters to
GovukSelectTwirl template- id
the id of the
selectelement- name
the name of the
selectelement- items
sequence of
SelectItems- describedBy
optional
aria-describedbyattribute for theselectelement- label
optional
Labelfor the control- hint
optional
Hintfor the control- errorMessage
optional
ErrorMessageto display- formGroupClasses
optional additional CSS classes to apply to the form group
- classes
optional additional CSS classes to apply to the
govuk-radiosdiv- attributes
optional additional HTML attributes to apply to the
govuk-selectdiv- value
optional value of the item that should be
selected
- Note
valueoverrides anyselectedSelectItem
- final case class SelectItem(value: Option[String] = None, text: String = "", selected: Boolean = false, disabled: Boolean = false, attributes: Map[String, String] = Map.empty) extends Product with Serializable
Value Members
- object Select extends Serializable
- object SelectItem extends Serializable