uk.gov.hmrc.govukfrontend.views.viewmodels.select

Members list

Type members

Classlikes

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

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

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Select.type
final case class SelectItem(value: Option[String], text: String, selected: Boolean, disabled: Boolean, attributes: Map[String, String])

Attributes

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

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
SelectItem.type