Packages

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 GovukSelect Twirl template

id

the id of the select element

name

the name of the select element

items

sequence of SelectItems

describedBy

optional aria-describedby attribute for the select element

label

optional Label for the control

hint

optional Hint for the control

errorMessage

optional ErrorMessage to display

formGroupClasses

optional additional CSS classes to apply to the form group

classes

optional additional CSS classes to apply to the govuk-radios div

attributes

optional additional HTML attributes to apply to the govuk-select div

value

optional value of the item that should be selected

Note

value overrides any selected SelectItem

Linear Supertypes
Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Select
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new 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)

    id

    the id of the select element

    name

    the name of the select element

    items

    sequence of SelectItems

    describedBy

    optional aria-describedby attribute for the select element

    label

    optional Label for the control

    hint

    optional Hint for the control

    errorMessage

    optional ErrorMessage to display

    formGroupClasses

    optional additional CSS classes to apply to the form group

    classes

    optional additional CSS classes to apply to the govuk-radios div

    attributes

    optional additional HTML attributes to apply to the govuk-select div

    value

    optional value of the item that should be selected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. val attributes: Map[String, String]
  6. val classes: String
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
  8. val describedBy: Option[String]
  9. val disabled: Option[Boolean]
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. val errorMessage: Option[html.components.ErrorMessage]
  12. val formGroupClasses: String
  13. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  14. val hint: Option[html.components.Hint]
  15. val id: String
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. val items: Seq[html.components.SelectItem]
  18. val label: html.components.Label
  19. val name: String
  20. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  23. def productElementNames: Iterator[String]
    Definition Classes
    Product
  24. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  25. val value: Option[String]
  26. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  27. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  28. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped