inputRadioGroup
views.html.helper.inputRadioGroup
object inputRadioGroup extends BaseScalaTemplate[Appendable, Format[Appendable]]
Attributes
- Graph
-
- Supertypes
- Self type
-
inputRadioGroup.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 radio group
Generate an HTML radio group
Example:
@inputRadioGroup(
contactForm("gender"),
options = Seq("M"->"Male","F"->"Female"),
Symbol("_label") -> "Gender",
Symbol("_error") -> contactForm("gender").error.map(_.withMessage("select gender")))
Value parameters
- args
-
Set of extra HTML attributes.
- field
-
The form field.
- handler
-
The field constructor.
- options
-
Seq of radio buttons encoded as value -> label
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