.. include:: /Includes.rst.txt
.. _typo3-fluid-form-button:
===========
form.button
===========
Creates a button.
Examples
========
Defaults::
Send Mail
Output::
Disabled cancel button with some HTML5 attributes::
Cancel
Output::
Arguments
=========
.. _form.button_additionalattributes:
additionalAttributes
--------------------
:aspect:`DataType`
mixed
:aspect:`Required`
false
:aspect:`Description`
Additional tag attributes. They will be added directly to the resulting HTML tag.
.. _form.button_data:
data
----
:aspect:`DataType`
mixed
:aspect:`Required`
false
:aspect:`Description`
Additional data-* attributes. They will each be added with a "data-" prefix.
.. _form.button_name:
name
----
:aspect:`DataType`
string
:aspect:`Required`
false
:aspect:`Description`
Name of input tag
.. _form.button_value:
value
-----
:aspect:`DataType`
mixed
:aspect:`Required`
false
:aspect:`Description`
Value of input tag
.. _form.button_property:
property
--------
:aspect:`DataType`
string
:aspect:`Required`
false
:aspect:`Description`
Name of Object Property. If used in conjunction with , "name" and "value" properties will be ignored.
.. _form.button_autofocus:
autofocus
---------
:aspect:`DataType`
string
:aspect:`Required`
false
:aspect:`Description`
Specifies that a button should automatically get focus when the page loads
.. _form.button_disabled:
disabled
--------
:aspect:`DataType`
string
:aspect:`Required`
false
:aspect:`Description`
Specifies that the input element should be disabled when the page loads
.. _form.button_form:
form
----
:aspect:`DataType`
string
:aspect:`Required`
false
:aspect:`Description`
Specifies one or more forms the button belongs to
.. _form.button_formaction:
formaction
----------
:aspect:`DataType`
string
:aspect:`Required`
false
:aspect:`Description`
Specifies where to send the form-data when a form is submitted. Only for type="submit"
.. _form.button_formenctype:
formenctype
-----------
:aspect:`DataType`
string
:aspect:`Required`
false
:aspect:`Description`
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")
.. _form.button_formmethod:
formmethod
----------
:aspect:`DataType`
string
:aspect:`Required`
false
:aspect:`Description`
Specifies how to send the form-data (which HTTP method to use). Only for type="submit" (e.g. "get" or "post")
.. _form.button_formnovalidate:
formnovalidate
--------------
:aspect:`DataType`
string
:aspect:`Required`
false
:aspect:`Description`
Specifies that the form-data should not be validated on submission. Only for type="submit"
.. _form.button_formtarget:
formtarget
----------
:aspect:`DataType`
string
:aspect:`Required`
false
:aspect:`Description`
Specifies where to display the response after submitting the form. Only for type="submit" (e.g. "_blank", "_self", "_parent", "_top", "framename")
.. _form.button_class:
class
-----
:aspect:`DataType`
string
:aspect:`Required`
false
:aspect:`Description`
CSS class(es) for this element
.. _form.button_dir:
dir
---
:aspect:`DataType`
string
:aspect:`Required`
false
:aspect:`Description`
Text direction for this HTML element. Allowed strings: "ltr" (left to right), "rtl" (right to left)
.. _form.button_id:
id
--
:aspect:`DataType`
string
:aspect:`Required`
false
:aspect:`Description`
Unique (in this file) identifier for this HTML element.
.. _form.button_lang:
lang
----
:aspect:`DataType`
string
:aspect:`Required`
false
:aspect:`Description`
Language for this element. Use short names specified in RFC 1766
.. _form.button_style:
style
-----
:aspect:`DataType`
string
:aspect:`Required`
false
:aspect:`Description`
Individual CSS styles for this element
.. _form.button_title:
title
-----
:aspect:`DataType`
string
:aspect:`Required`
false
:aspect:`Description`
Tooltip text of element
.. _form.button_accesskey:
accesskey
---------
:aspect:`DataType`
string
:aspect:`Required`
false
:aspect:`Description`
Keyboard shortcut to access this element
.. _form.button_tabindex:
tabindex
--------
:aspect:`DataType`
integer
:aspect:`Required`
false
:aspect:`Description`
Specifies the tab order of this element
.. _form.button_onclick:
onclick
-------
:aspect:`DataType`
string
:aspect:`Required`
false
:aspect:`Description`
JavaScript evaluated for the onclick event
.. _form.button_type:
type
----
:aspect:`DataType`
string
:aspect:`Default`
'submit'
:aspect:`Required`
false
:aspect:`Description`
Specifies the type of button (e.g. "button", "reset" or "submit")