select
views.html.helper.select
object select extends BaseScalaTemplate[Appendable, Format[Appendable]]
Attributes
- Graph
-
- Supertypes
- Self type
-
select.type
Members list
Value members
Concrete methods
def apply(field: Field, options: Seq[(String, String)], args: (Symbol, Any)*)(implicit handler: FieldConstructor, messages: MessagesProvider): Appendable
Generate an HTML select.
Generate an HTML select.
Example:
@select(
field = myForm("mySelect"),
options = Seq(
"Foo" -> "foo text",
"Bar" -> "bar text",
"Baz" -> "baz text"
),
Symbol("_default") -> "Choose One",
Symbol("_disabled") -> Seq("FooKey", "BazKey")
Symbol("cust_att_name") -> "cust_att_value"
)
Value parameters
- args
-
Set of extra attributes.
- field
-
The form field.
- handler
-
The field constructor.
- options
-
Sequence of options as pairs of value and HTML.
Attributes
def f: (Field, Seq[(String, String)], Array[(Symbol, Any)]) => (FieldConstructor, MessagesProvider) => Appendable
def render(field: Field, options: Seq[(String, String)], args: Array[(Symbol, Any)], handler: FieldConstructor, messages: MessagesProvider): Appendable
In this article