Package

ViewHelpers

ViewHelper Documentation

form.button

Creates a button.

= Examples =

<f:form.button>Send Mail</f:form.button>

<f:form.button type="reset" name="buttonName" value="buttonValue" disabled="disabled" formmethod="post" formnovalidate="formnovalidate">Cancel</f:form.button>

Arguments

additionalAttributes anySimpleType

Additional tag attributes. They will be added directly to the resulting HTML tag.

data anySimpleType

Additional data-* attributes. They will each be added with a "data-" prefix.

name string

Name of input tag

value anySimpleType

Value of input tag

property string

Name of Object Property. If used in conjunction with <f:form object="...">, "name" and "value" properties will be ignored.

autofocus string

Specifies that a button should automatically get focus when the page loads

disabled string

Specifies that the input element should be disabled when the page loads

form string

Specifies one or more forms the button belongs to

formaction string

Specifies where to send the form-data when a form is submitted. Only for type="submit"

formenctype string

Specifies how form-data should be encoded before sending it to a server. Only for type="submit" (e.g. "application/x-www-form-urlencoded", "multipart/form-data" or "text/plain")

formmethod string

Specifies how to send the form-data (which HTTP method to use). Only for type="submit" (e.g. "get" or "post")

formnovalidate string

Specifies that the form-data should not be validated on submission. Only for type="submit"

formtarget string

Specifies where to display the response after submitting the form. Only for type="submit" (e.g. "_blank", "_self", "_parent", "_top", "framename")

class string

CSS class(es) for this element

dir string

Text direction for this HTML element. Allowed strings: "ltr" (left to right), "rtl" (right to left)

id string

Unique (in this file) identifier for this HTML element.

lang string

Language for this element. Use short names specified in RFC 1766

style string

Individual CSS styles for this element

title string

Tooltip text of element

accesskey string

Keyboard shortcut to access this element

tabindex integer

Specifies the tab order of this element

onclick string

JavaScript evaluated for the onclick event

type string

Specifies the type of button (e.g. "button", "reset" or "submit")

ViewHelper Resources

Schema Resources