ViewHelper Documentation
form.checkbox
View Helper which creates a simple checkbox ().
= Examples =
<f:form.checkbox name="myCheckBox" value="someValue" />
<f:form.checkbox name="myCheckBox" value="someValue" checked="{object.value} == 5" />
<f:form.checkbox property="interests" value="TYPO3" />
Arguments
- additionalAttributes
- data
- name
- value
- property
- disabled
- errorClass
- class
- dir
- id
- lang
- style
- title
- accesskey
- tabindex
- onclick
- checked
- multiple
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 string
Value of input tag. Required for checkboxes
property string
Name of Object Property. If used in conjunction with <f:form object="...">, "name" and "value" properties will be ignored.
disabled string
Specifies that the input element should be disabled when the page loads
errorClass string
CSS class to set if there are errors for this view helper
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
checked anySimpleType
Specifies that the input element should be preselected
multiple anySimpleType
Specifies whether this checkbox belongs to a multivalue (is part of a checkbox group)