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
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.
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
forceClosingTag boolean
If TRUE, forces the created tag to use a closing tag. If FALSE, allows self-closing tags.
hideIfEmpty boolean
Hide the tag completely if there is no tag content
contenteditable string
Specifies whether the contents of the element are editable.
contextmenu string
The value of the id attribute on the menu with which to associate the element as a context menu.
draggable string
Specifies whether the element is draggable.
dropzone string
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
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
Specifies whether the element represents an element whose contents are subject to spell checking and grammar checking.
hidden string
Specifies that the element represents an element that is not yet, or is no longer, relevant.
name string, required
Tag name