Packages

package select

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. Protected

Type Members

  1. 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, formGroup: FormGroup = FormGroup.empty, 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

    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

    formGroup

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

    classes

    optional additional CSS classes to apply to the select

    attributes

    optional additional HTML attributes to apply to the select

    value

    optional value of the item that should be selected

    Note

    value overrides any selected SelectItem

  2. final case class SelectItem(value: Option[String] = None, text: String = "", selected: Boolean = false, disabled: Boolean = false, attributes: Map[String, String] = Map.empty) extends Product with Serializable

Value Members

  1. object Select extends Serializable
  2. object SelectItem extends Serializable

Ungrouped