Jump to content

auFormFieldSet: Difference between revisions

From auWiki
m change categories
new auFormFieldSet: add $contents
 
Line 7: Line 7:
==Public Functions==
==Public Functions==
===new auFormFieldSet===
===new auFormFieldSet===
<code>new auFormFieldSet(''$title'', ''$id'', ''$class'')</code>
<code>new auFormFieldSet(''$title'', ''$id'', ''$class'', ''$contents'')</code>


Creates a new fieldset object.
Creates a new fieldset object.
Line 13: Line 13:
* ''$id'' = CSS id of the <code>fieldset</code> element.  Default is none.
* ''$id'' = CSS id of the <code>fieldset</code> element.  Default is none.
* ''$class'' = CSS class of the <code>fieldset</code> element.  Default is none.
* ''$class'' = CSS class of the <code>fieldset</code> element.  Default is none.
* ''$contents'' = HTML contents of the <code>fieldset</code>.  Any fields it contains will be written after the contents.


===''Add*''===
===''Add*''===

Latest revision as of 09:58, 13 January 2011

The auFormFieldSet class represents a set of fields that are grouped together (using an HTML <fieldset>). It is part of the auLib package.

Usage

Once an auFormFieldSet object is created, fields can be added to it using the same functions that auForm provides. After an auFormFieldSet object has all its fields added, the auFormFieldSet object itself should be added to an auForm object using AddFieldSet().

Public Functions

new auFormFieldSet

new auFormFieldSet($title, $id, $class, $contents)

Creates a new fieldset object.

  • $title = Title of the fieldset, used in an HTML <legend>. Default is to not have a title.
  • $id = CSS id of the fieldset element. Default is none.
  • $class = CSS class of the fieldset element. Default is none.
  • $contents = HTML contents of the fieldset. Any fields it contains will be written after the contents.

Add*

See auForm Functions for specifics -- all functions beginning with Add (except for AddFieldSet()) can also be used on an auFormFieldSet object.