Dashboard > WebWork > ... > Form Tags > optgroup
  WebWork Log In View a printable version of the current page.  
  optgroup
Added by tm_jee, last edited by Rainer Hermanns on Apr 13, 2007  (view change)
Labels: 
(None)

Please make sure you have read the Tag Syntax document and understand how tag attribute syntax works.

Description

Create a optgroup component which needs to resides within a select tag.

This component is to be used within a Select component.

Parameters

Name

Required

Default

Type

Description

label false   Object/String Set the label attribute.
disabled false   Object/String Set the disable attribute.
list false   Object/String Set the list attribute.
listKey false   Object/String Set the listKey attribute.
listValue false   Object/String Set the listValue attribute.
id false   Object/String id for referencing element. For UI and form tags it will be used as HTML id attribute

Examples

<ww:select label="My Selection" 
           name="mySelection" 
           value="%{'POPEYE'}"
           list="%{#{'SUPERMAN':'Superman', 'SPIDERMAN':'spiderman'}}">
   <ww:optgroup label="Adult"
                list="%{#{'SOUTH_PARK':'South Park'}}" />
   <ww:optgroup label="Japanese"
                list="%{#{'POKEMON':'pokemon','DIGIMON':'digimon','SAILORMOON':'Sailormoon'}}" />
</ww:select>

Site powered by a free Open Source Project / Non-profit License (more) of Confluence - the Enterprise wiki.
Learn more or evaluate Confluence for your organisation.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.2.9 Build:#527 Sep 07, 2006) - Bug/feature request - Contact Administrators