Form.uploadDeleteCheckbox ViewHelper <formvh:form.uploadDeleteCheckbox>
ViewHelper which renders a checkbox for file deletion in EXT:form.
This ViewHelper is similar to Extbase's UploadDeleteCheckboxViewHelper but adapted for the EXT:form context. It renders a checkbox that, when checked, marks the associated file for deletion on form submission.
Example usage:
Scope: frontend
Go to the source code of this ViewHelper: Form\UploadDeleteCheckboxViewHelper.php (GitHub).
Arguments of the <formvh:form.uploadDeleteCheckbox> ViewHelper
Allows arbitrary arguments
This ViewHelper allows you to pass arbitrary arguments not defined below
directly to the HTML tag created. This includes custom data- arguments.
additionalAttributes
-
- Type
- array
Additional tag attributes. They will be added directly to the resulting HTML tag.
aria
-
- Type
- array
Additional aria-* attributes. They will each be added with a "aria-" prefix.
data
-
- Type
- array
Additional data-* attributes. They will each be added with a "data-" prefix.
fileIndex
-
- Type
- int
- Default
- 0
Index of the file in multiple upload context
fileReference
-
- Type
- TYPO3\CMS\Extbase\Domain\Model\FileReference
- Required
- 1
The file reference object
name
-
- Type
- string
Name of input tag
property
-
- Type
- string
Name of Object Property. If used in conjunction with <f:form object="...">, the "name" property will be ignored, while "value" can be used to specify a default field value instead of the object property value.
value
-
- Type
- mixed
Value of input tag