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) extends Product with Serializable
Parameters to GovukSelect Twirl 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
- Alphabetic
- By Inheritance
- Select
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- 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)
- 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
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val attributes: Map[String, String]
- val classes: String
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- val describedBy: Option[String]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val errorMessage: Option[html.components.ErrorMessage]
- val formGroupClasses: String
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val hint: Option[html.components.Hint]
- val id: String
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val items: Seq[html.components.SelectItem]
- val label: html.components.Label
- val name: String
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val value: Option[String]
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated