Package

ViewHelpers

ViewHelper Documentation

v:form.select

Select ViewHelper (with support for Optgroup and Option subnodes)

Arguments

additionalAttributes anySimpleType

Additional tag attributes. They will be added directly to the resulting HTML tag.

name string

Name of input tag

value anySimpleType

Value of input tag

property string

Name of Object Property. If used in conjunction with <f:form object="...">, "name" and "value" properties will be ignored.

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

size string

Size of input field

disabled string

Specifies that the input element should be disabled when the page loads

multiple boolean

if set, multiple select field

options anySimpleType

Associative array with internal IDs as key, and the values are displayed in the select box

optionValueField string

If specified, will call the appropriate getter on each object to determine the value.

optionLabelField string

If specified, will call the appropriate getter on each object to determine the label.

sortByOptionLabel boolean

If true, List will be sorted by label.

selectAllByDefault boolean

If specified options are selected if none was set before.

errorClass string

CSS class to set if there are errors for this view helper

ViewHelper Resources

Schema Resources