ViewHelper Documentation
v:tag
Tag building ViewHelper
Creates one HTML tag of any type, with various properties like class and ID applied only if arguments are not empty, rather than apply them always - empty or not - if provided.
Arguments
- additionalAttributes
- data
- class
- dir
- id
- lang
- style
- title
- accesskey
- tabindex
- onclick
- forceClosingTag
- hideIfEmpty
- contenteditable
- contextmenu
- draggable
- dropzone
- translate
- spellcheck
- hidden
- name
additionalAttributes anySimpleType, required
Additional tag attributes. They will be added directly to the resulting HTML tag.
data anySimpleType, required
Additional data-* attributes. They will each be added with a "data-" prefix.
class string, required
CSS class(es) for this element
dir string, required
Text direction for this HTML element. Allowed strings: "ltr" (left to right), "rtl" (right to left)
id string, required
Unique (in this file) identifier for this HTML element.
lang string, required
Language for this element. Use short names specified in RFC 1766
style string, required
Individual CSS styles for this element
title string, required
Tooltip text of element
accesskey string, required
Keyboard shortcut to access this element
tabindex integer, required
Specifies the tab order of this element
onclick string, required
JavaScript evaluated for the onclick event
forceClosingTag boolean, required
If TRUE, forces the created tag to use a closing tag. If FALSE, allows self-closing tags.
hideIfEmpty boolean, required
Hide the tag completely if there is no tag content
contenteditable string, required
Specifies whether the contents of the element are editable.
contextmenu string, required
The value of the id attribute on the menu with which to associate the element as a context menu.
draggable string, required
Specifies whether the element is draggable.
dropzone string, required
Specifies what types of content can be dropped on the element, and instructs the UA about which actions to take with content when it is dropped on the element.
translate string, required
Specifies whether an elements attribute values and contents of its children are to be translated when the page is localized, or whether to leave them unchanged.
spellcheck string, required
Specifies whether the element represents an element whose contents are subject to spell checking and grammar checking.
hidden string, required
Specifies that the element represents an element that is not yet, or is no longer, relevant.
name string, required
Tag name