Documentation · ViewHelper reference

XSD schema file | vhs master

Form / Select / OptgroupViewHelper

Optgroup ViewHelper to use under vhs:form.select. /

  • Tag usage example

    <v:form.select.optgroup additionalAttributes="{foo: 'bar'}" data="{foo: 'bar'}" class="NULL" dir="NULL" id="NULL" lang="NULL" style="NULL" title="NULL" accesskey="NULL" tabindex="123" onclick="NULL" label="NULL">
    	<!-- tag content - may be ignored! -->
    </v:form.select.optgroup>
  • Inline usage example

    {v:form.select.optgroup(additionalAttributes: {foo: 'bar'}, data: {foo: 'bar'}, class: 'NULL', dir: 'NULL', id: 'NULL', lang: 'NULL', style: 'NULL', title: 'NULL', accesskey: 'NULL', tabindex: 123, onclick: 'NULL', label: 'NULL')}

Arguments

Argument Description Type
accesskey

Keyboard shortcut to access this element

string
additionalAttributes

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

array
class

CSS class(es) for this element

string
data

Additional data-* attributes. They will each be added with a "data-" prefix.

array
dir

Text direction for this HTML element. Allowed strings: "ltr" (left to right), "rtl" (right to left)

string
id

Unique (in this file) identifier for this HTML element.

string
label

Label for this option group

string
lang

Language for this element. Use short names specified in RFC 1766

string
onclick

JavaScript evaluated for the onclick event

string
style

Individual CSS styles for this element

string
tabindex

Specifies the tab order of this element

integer
title

Tooltip text of element

string
Required attribute

Revision history

commit ea3893cd4d93538f6aba597d529b03ef9f1a0222
Author: Claus Due <*****@wildside.dk>
Date:   Fri Nov 2 16:37:10 2012 +0100

    [FEATURE] Form / Select, Option and Optgroup ViewHelpers

commit da31bad1d9bb058c072ddb5591e8ed907a1ae8e1
Author: Claus Due <*****@namelesscoder.net>
Date:   Tue Dec 31 23:08:37 2013 +0100

    [TASK] Happy new year!

commit d2e531da034976e6db1478eef5a8478595fd16fe
Author: Claus Due <*****@namelesscoder.net>
Date:   Sun Jan 5 00:45:10 2014 +0100

    [TASK] Migrate to using namespace core class names

commit da7677bc74f14e9a9300e4ba4487e52c3cb97642
Author: Claus Due <*****@namelesscoder.net>
Date:   Sun Apr 20 01:13:33 2014 +0200

    [TASK] Switch to namespaces

commit 8bb2fc5ee124ba19b0a0ab8e061c9a153fc4651f
Author: Xaver Maierhofer <*****@xwissen.info>
Date:   Sun Jan 18 17:56:13 2015 +0100

    [TASK] Reference Copyright to license.md file