tag ViewHelper <vhs: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 

DataType
mixed
Required
false
Description
Additional tag attributes. They will be added directly to the resulting HTML tag.

data 

DataType
mixed
Required
false
Description
Additional data-* attributes. They will each be added with a "data-" prefix.

aria 

DataType
mixed
Required
false
Description
Additional aria-* attributes. They will each be added with a "aria-" prefix.

class 

DataType
string
Required
false
Description
CSS class(es) for this element

dir 

DataType
string
Required
false
Description
Text direction for this HTML element. Allowed strings: "ltr" (left to right), "rtl" (right to left)

id 

DataType
string
Required
false
Description
Unique (in this file) identifier for this HTML element.

lang 

DataType
string
Required
false
Description
Language for this element. Use short names specified in RFC 1766

style 

DataType
string
Required
false
Description
Individual CSS styles for this element

title 

DataType
string
Required
false
Description
Tooltip text of element

accesskey 

DataType
string
Required
false
Description
Keyboard shortcut to access this element

tabindex 

DataType
integer
Required
false
Description
Specifies the tab order of this element

onclick 

DataType
string
Required
false
Description
JavaScript evaluated for the onclick event

forceClosingTag 

DataType
boolean
Required
false
Description
If TRUE, forces the created tag to use a closing tag. If FALSE, allows self-closing tags.

hideIfEmpty 

DataType
boolean
Required
false
Description
Hide the tag completely if there is no tag content

contenteditable 

DataType
string
Required
false
Description
Specifies whether the contents of the element are editable.

contextmenu 

DataType
string
Required
false
Description
The value of the id attribute on the menu with which to associate the element as a context menu.

draggable 

DataType
string
Required
false
Description
Specifies whether the element is draggable.

dropzone 

DataType
string
Required
false
Description
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 

DataType
string
Required
false
Description
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 

DataType
string
Required
false
Description
Specifies whether the element represents an element whose contents are subject to spell checking and grammar checking.

hidden 

DataType
string
Required
false
Description
Specifies that the element represents an element that is not yet, or is no longer, relevant.

name 

DataType
string
Required
true
Description
Tag name