Select

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-describedby attribute for the select element

errorMessage

optional ErrorMessage to display

formGroup

additional CSS classes/attributes/etc. to apply to the form group

hint

optional Hint for the control

id

the id of the select element

items

sequence of SelectItems

label

optional Label for the control

name

the name of the select element

value

optional value of the item that should be selected

Attributes

Note

value overrides any selected SelectItem

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product