select

views.html.helper.select
object select extends BaseScalaTemplate[Appendable, Format[Appendable]], Template5[Field, Seq[(String, String)], Array[(Symbol, Any)], FieldConstructor, MessagesProvider, Appendable]

Attributes

Graph
Supertypes
trait Template5[Field, Seq[(String, String)], Array[(Symbol, Any)], FieldConstructor, MessagesProvider, Appendable]
class BaseScalaTemplate[Appendable, Format[Appendable]]
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
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 ref: this.type
def render(field: Field, options: Seq[(String, String)], args: Array[(Symbol, Any)], handler: FieldConstructor, messages: MessagesProvider): Appendable

Inherited methods

def _display_(o: Any)(implicit m: ClassTag[Appendable]): Appendable

Attributes

Inherited from:
BaseScalaTemplate
def _display_(x: Appendable): Appendable

Attributes

Inherited from:
BaseScalaTemplate
def _display_(x: NodeSeq): Appendable

Attributes

Inherited from:
BaseScalaTemplate
def _display_(x: Unit): Appendable

Attributes

Inherited from:
BaseScalaTemplate
def _display_(x: String): Appendable

Attributes

Inherited from:
BaseScalaTemplate
def _display_(x: AnyVal): Appendable

Attributes

Inherited from:
BaseScalaTemplate

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product