uk.gov.hmrc.govukfrontend.views.viewmodels.select.Select
See theSelect companion object
case class Select(id: String, name: String, items: Seq[SelectItem], describedBy: Option[String], label: Label, hint: Option[Hint], errorMessage: Option[ErrorMessage], formGroup: FormGroup, classes: String, attributes: Map[String, String], value: Option[String], disabled: Option[Boolean])
Parameters to GovukSelect Twirl template
Value parameters
- attributes
-
optional additional HTML attributes to apply to the
select - classes
-
optional additional CSS classes to apply to the
select - describedBy
-
optional
aria-describedbyattribute for theselectelement - errorMessage
-
optional
ErrorMessageto display - formGroup
-
additional CSS classes/attributes/etc. to apply to the form group
- hint
-
optional
Hintfor the control - id
-
the id of the
selectelement - items
-
sequence of
SelectItems - label
-
optional
Labelfor the control - name
-
the name of the
selectelement - value
-
optional value of the item that should be
selected
Attributes
- Note
-
valueoverrides anyselectedSelectItem - Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article